[Xfce4-commits] [xfce/exo] 01/01: Close fd with error state goto (CID 30797)
noreply at xfce.org
noreply at xfce.org
Mon May 25 20:12:34 CEST 2015
This is an automated email from the git hooks/post-receive script.
bluesabre pushed a commit to branch master
in repository xfce/exo.
commit 5923a0986a028f5e8d675a9f8ec016978e29bfb6
Author: Sean Davis <smd.seandavis at gmail.com>
Date: Mon May 25 14:12:29 2015 -0400
Close fd with error state goto (CID 30797)
---
exo/exo-gdk-pixbuf-extensions.c | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/exo/exo-gdk-pixbuf-extensions.c b/exo/exo-gdk-pixbuf-extensions.c
index 07d4253..40d3e66 100644
--- a/exo/exo-gdk-pixbuf-extensions.c
+++ b/exo/exo-gdk-pixbuf-extensions.c
@@ -787,6 +787,11 @@ err1: /* initialize the library's i18n support */
g_set_error (error, G_FILE_ERROR, g_file_error_from_errno (sverrno), _("Failed to open file \"%s\": %s"), display_name, g_strerror (sverrno));
g_free (display_name);
+ if (fd >= 0)
+ {
+ close(fd);
+ }
+
return NULL;
}
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.
More information about the Xfce4-commits
mailing list