[epiphany] ephy-profile-utils: fix memory leak



commit 236fcd2eaf94c0011156e92ebf8814ead3915d87
Author: Pavel Vasin <rat4vier gmail com>
Date:   Fri Jun 8 13:58:10 2012 +0400

    ephy-profile-utils: fix memory leak
    
    https://bugzilla.gnome.org/show_bug.cgi?id=677720

 lib/ephy-profile-utils.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/lib/ephy-profile-utils.c b/lib/ephy-profile-utils.c
index 53d8dd8..559ab17 100644
--- a/lib/ephy-profile-utils.c
+++ b/lib/ephy-profile-utils.c
@@ -47,12 +47,13 @@ ephy_profile_utils_get_migration_version ()
       result = sscanf(contents, "%d", &latest);
 
     g_free (contents);
-    g_free (migrated_file);
 
     if (result != 1)
       latest = 0;
   }
 
+  g_free (migrated_file);
+
   return latest;
 }
 



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]