summaryrefslogtreecommitdiff
path: root/gdk-pixbuf/io-tiff.c
diff options
context:
space:
mode:
Diffstat (limited to 'gdk-pixbuf/io-tiff.c')
-rw-r--r--gdk-pixbuf/io-tiff.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/gdk-pixbuf/io-tiff.c b/gdk-pixbuf/io-tiff.c
index dcc1ea66b..fdf517463 100644
--- a/gdk-pixbuf/io-tiff.c
+++ b/gdk-pixbuf/io-tiff.c
@@ -171,12 +171,14 @@ gdk_pixbuf__tiff_image_begin_load (ModulePreparedNotifyFunc prepare_func,
fd = open (context->tempname, O_RDWR);
#endif
if (fd < 0) {
+ g_free (context->tempname);
g_free (context);
return NULL;
}
context->file = fdopen (fd, "w");
if (context->file == NULL) {
+ g_free (context->tempname);
g_free (context);
return NULL;
}