projects
/
platform
/
upstream
/
glib.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
feec280
)
gfileutils: Add missing g_free() in error path
author
Colin Walters
<walters@verbum.org>
Tue, 22 Jul 2014 18:00:23 +0000
(14:00 -0400)
committer
Colin Walters
<walters@verbum.org>
Wed, 23 Jul 2014 11:43:41 +0000
(07:43 -0400)
Discovered by static analysis.
https://bugzilla.gnome.org/show_bug.cgi?id=733576
glib/gfileutils.c
patch
|
blob
|
history
diff --git
a/glib/gfileutils.c
b/glib/gfileutils.c
index
c80c1ef
..
baf3bec
100644
(file)
--- a/
glib/gfileutils.c
+++ b/
glib/gfileutils.c
@@
-2013,7
+2013,7
@@
g_file_read_link (const gchar *filename,
set_file_error (error,
filename,
_("Failed to read the symbolic link '%s': %s"));
-
+ g_free (buffer);
return NULL;
}