[gimp] plug-ins: fix resource leak
- From: Jacob Boerema <jboerema src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gimp] plug-ins: fix resource leak
- Date: Fri, 3 Jun 2022 16:52:43 +0000 (UTC)
commit 862c54ec94cbc1940ca08f51cc433e9ae0527853
Author: Jacob Boerema <jgboerema gmail com>
Date: Fri Jun 3 12:48:19 2022 -0400
plug-ins: fix resource leak
In case of a certain error condition we forgot to free our resources.
This would only happen if we had a corrupt FLI/FLC image.
plug-ins/file-fli/fli-gimp.c | 3 +++
1 file changed, 3 insertions(+)
---
diff --git a/plug-ins/file-fli/fli-gimp.c b/plug-ins/file-fli/fli-gimp.c
index bbc8007c22..9e06808c28 100644
--- a/plug-ins/file-fli/fli-gimp.c
+++ b/plug-ins/file-fli/fli-gimp.c
@@ -612,6 +612,9 @@ load_image (GFile *file,
{
gimp_image_delete (image);
g_prefix_error (error, _("Failed to read frame %d. Possibly corrupt animation.\n"), cnt);
+ fclose (fp);
+ g_free (fb);
+ g_free (ofb);
return FALSE;
}
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]