[glib: 8/10] tests: Fix a memory leak in the keyfile test
- From: Philip Withnall <pwithnall src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [glib: 8/10] tests: Fix a memory leak in the keyfile test
- Date: Sun, 20 Feb 2022 12:09:02 +0000 (UTC)
commit ba556e6d349aa5dfb89a16e3420d4f60c8757d5d
Author: Philip Withnall <pwithnall endlessos org>
Date: Fri Feb 18 02:34:13 2022 +0000
tests: Fix a memory leak in the keyfile test
Signed-off-by: Philip Withnall <pwithnall endlessos org>
glib/tests/keyfile.c | 1 +
1 file changed, 1 insertion(+)
---
diff --git a/glib/tests/keyfile.c b/glib/tests/keyfile.c
index 04c0fd962..3d72d9670 100644
--- a/glib/tests/keyfile.c
+++ b/glib/tests/keyfile.c
@@ -1700,6 +1700,7 @@ test_utf8 (void)
g_assert_error (error, G_KEY_FILE_ERROR, G_KEY_FILE_ERROR_UNKNOWN_ENCODING);
g_clear_error (&error);
g_key_file_free (file);
+ g_free (data);
}
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]