diff options
author | Pavel Vasin <rat4vier@gmail.com> | 2012-06-08 17:58:10 +0800 |
---|---|---|
committer | Claudio Saavedra <csaavedra@igalia.com> | 2012-06-12 17:03:00 +0800 |
commit | 236fcd2eaf94c0011156e92ebf8814ead3915d87 (patch) | |
tree | 078b3210010ca5461ec5c8b4b1c0db4fa08f3c8f | |
parent | c11e8f1c77127a75a842ba3d9a75ade1b6ba9d2b (diff) | |
download | gsoc2013-epiphany-236fcd2eaf94c0011156e92ebf8814ead3915d87.tar gsoc2013-epiphany-236fcd2eaf94c0011156e92ebf8814ead3915d87.tar.gz gsoc2013-epiphany-236fcd2eaf94c0011156e92ebf8814ead3915d87.tar.bz2 gsoc2013-epiphany-236fcd2eaf94c0011156e92ebf8814ead3915d87.tar.lz gsoc2013-epiphany-236fcd2eaf94c0011156e92ebf8814ead3915d87.tar.xz gsoc2013-epiphany-236fcd2eaf94c0011156e92ebf8814ead3915d87.tar.zst gsoc2013-epiphany-236fcd2eaf94c0011156e92ebf8814ead3915d87.zip |
ephy-profile-utils: fix memory leak
https://bugzilla.gnome.org/show_bug.cgi?id=677720
-rw-r--r-- | 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 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; } |