[libgsf] GsfOutputStdio: plug leak.
- From: Morten Welinder <mortenw src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [libgsf] GsfOutputStdio: plug leak.
- Date: Tue, 2 Dec 2014 01:08:10 +0000 (UTC)
commit ad5712c99143c056a5c46d9cd555ab7a18a7edcb
Author: Morten Welinder <terra gnome org>
Date: Mon Dec 1 20:07:42 2014 -0500
GsfOutputStdio: plug leak.
ChangeLog | 2 ++
gsf/gsf-output-stdio.c | 1 +
2 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/ChangeLog b/ChangeLog
index 8429c20..7ffafc6 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,7 @@
2014-12-01 Morten Welinder <terra gnome org>
+ * gsf/gsf-output-stdio.c (follow_symlinks): Plug leak.
+
* gsf/gsf-outfile-zip.c (zip_dirent_write): Handle the case of
small file beyond offset 4G. The header record won't be zip64,
but the dirent needs to.
diff --git a/gsf/gsf-output-stdio.c b/gsf/gsf-output-stdio.c
index cb2fbbc..8e21733 100644
--- a/gsf/gsf-output-stdio.c
+++ b/gsf/gsf-output-stdio.c
@@ -165,6 +165,7 @@ follow_symlinks (char const *filename, GError **error)
*error = g_error_new_literal (gsf_output_error_id (), err,
g_strerror (err));
}
+ g_free (link);
g_free (followed_filename);
return NULL;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]