diff options
author | Philip Withnall <philip@tecnocode.co.uk> | 2016-12-12 22:13:10 +0000 |
---|---|---|
committer | Bastien Nocera <hadess@hadess.net> | 2016-12-19 18:48:05 +0100 |
commit | 28b2aff958ec7d2fb7c81f7c8831f2d157e85406 (patch) | |
tree | 5a0d82ad5b2abdf1300ea589c3e8448404683352 /tests/pixbuf-random.c | |
parent | b2b23b06545c15d322c875dc439773c990619e37 (diff) | |
download | gdk-pixbuf-28b2aff958ec7d2fb7c81f7c8831f2d157e85406.tar.gz |
tests: Fix a leak on an error path
Inconsequential leak fix.
Coverity CID 1388539.
https://bugzilla.gnome.org/show_bug.cgi?id=776020
Diffstat (limited to 'tests/pixbuf-random.c')
-rw-r--r-- | tests/pixbuf-random.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/pixbuf-random.c b/tests/pixbuf-random.c index 1f8646b23..ff940dab5 100644 --- a/tests/pixbuf-random.c +++ b/tests/pixbuf-random.c @@ -51,6 +51,8 @@ assault (const guchar *header, gsize header_size, int n_images) if (err) { g_error_free (err); + g_object_unref (loader); + fclose (f); continue; } |