diff options
author | Christian Persch <chpe@cvs.gnome.org> | 2004-01-26 04:08:32 +0800 |
---|---|---|
committer | Christian Persch <chpe@src.gnome.org> | 2004-01-26 04:08:32 +0800 |
commit | efb44feef21557283e8c7bc1171d4130594d9444 (patch) | |
tree | b0c9b18b07222a6872042f123422e7584c858d65 /src/bookmarks | |
parent | 1b1252af7d5375985948ae461cdb30629d18b2af (diff) | |
download | gsoc2013-epiphany-efb44feef21557283e8c7bc1171d4130594d9444.tar gsoc2013-epiphany-efb44feef21557283e8c7bc1171d4130594d9444.tar.gz gsoc2013-epiphany-efb44feef21557283e8c7bc1171d4130594d9444.tar.bz2 gsoc2013-epiphany-efb44feef21557283e8c7bc1171d4130594d9444.tar.lz gsoc2013-epiphany-efb44feef21557283e8c7bc1171d4130594d9444.tar.xz gsoc2013-epiphany-efb44feef21557283e8c7bc1171d4130594d9444.tar.zst gsoc2013-epiphany-efb44feef21557283e8c7bc1171d4130594d9444.zip |
Fix mem leak.
2004-01-25 Christian Persch <chpe@cvs.gnome.org>
* src/bookmarks/ephy-bookmarks-export.c:
(ephy_bookmarks_export_rdf):
Fix mem leak.
Diffstat (limited to 'src/bookmarks')
-rw-r--r-- | src/bookmarks/ephy-bookmarks-export.c | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/src/bookmarks/ephy-bookmarks-export.c b/src/bookmarks/ephy-bookmarks-export.c index df7537abf..1251eebe9 100644 --- a/src/bookmarks/ephy-bookmarks-export.c +++ b/src/bookmarks/ephy-bookmarks-export.c @@ -94,7 +94,11 @@ ephy_bookmarks_export_rdf (EphyBookmarks *bookmarks, /* FIXME: do we want to turn on compression here? */ writer = xmlNewTextWriterFilename (tmp_file, 0); - if (writer == NULL) return; + if (writer == NULL) + { + g_free (tmp_file); + return; + } ret = xmlTextWriterStartDocument (writer, "1.0", NULL, NULL); if (ret < 0) goto out; @@ -274,6 +278,8 @@ out: } } + g_free (tmp_file); + STOP_PROFILER ("Exporting as RDF") LOG ("Exporting as RDF %s.", ret >= 0 ? "succeeded" : "FAILED") |