[gobject-introspection] tests: Free input string in regress_test_utf8_inout()
- From: Colin Walters <walters src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gobject-introspection] tests: Free input string in regress_test_utf8_inout()
- Date: Mon, 19 Oct 2015 22:25:05 +0000 (UTC)
commit dcf87051f8ffd7b2bfc48d2e723b208c3345434c
Author: Simon Feltman <sfeltman src gnome org>
Date: Thu Sep 11 19:29:47 2014 -0700
tests: Free input string in regress_test_utf8_inout()
Transfer is annotated as full so the function should free its input
after testing and before output assignment.
https://bugzilla.gnome.org/show_bug.cgi?id=736517
tests/scanner/regress.c | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
---
diff --git a/tests/scanner/regress.c b/tests/scanner/regress.c
index b842e2f..59dafaa 100644
--- a/tests/scanner/regress.c
+++ b/tests/scanner/regress.c
@@ -520,6 +520,7 @@ regress_test_utf8_inout (char **inout)
{
/* inout parameter, transfer mode full */
g_assert (strcmp (*inout, utf8_const) == 0);
+ g_free (*inout);
*inout = g_strdup (utf8_nonconst);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]