[gimp] libgimpbase: fix resource leak in gimpmetadata
- From: Jacob Boerema <jboerema src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gimp] libgimpbase: fix resource leak in gimpmetadata
- Date: Thu, 2 Jun 2022 19:15:14 +0000 (UTC)
commit 3138fe515812a3ad8745821f7c862b398569587d
Author: Jacob Boerema <jgboerema gmail com>
Date: Thu Jun 2 15:14:33 2022 -0400
libgimpbase: fix resource leak in gimpmetadata
Variable value was not always freed. Move it outside the else block.
libgimpbase/gimpmetadata.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/libgimpbase/gimpmetadata.c b/libgimpbase/gimpmetadata.c
index a0531588b1..7f63d0223d 100644
--- a/libgimpbase/gimpmetadata.c
+++ b/libgimpbase/gimpmetadata.c
@@ -757,8 +757,8 @@ gimp_metadata_deserialize_text (GMarkupParseContext *context,
G_STRFUNC, parse_data->name, error->message);
g_clear_error (&error);
}
- g_free (value);
}
+ g_free (value);
}
}
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]