From 236fcd2eaf94c0011156e92ebf8814ead3915d87 Mon Sep 17 00:00:00 2001 From: Pavel Vasin Date: Fri, 8 Jun 2012 13:58:10 +0400 Subject: ephy-profile-utils: fix memory leak https://bugzilla.gnome.org/show_bug.cgi?id=677720 --- lib/ephy-profile-utils.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'lib') diff --git a/lib/ephy-profile-utils.c b/lib/ephy-profile-utils.c index 53d8dd8e7..559ab1792 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; } -- cgit v1.2.3