[gnome-keyring] test-spawn: Fix leaks of EchoData content
- From: Stefan Walter <stefw src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-keyring] test-spawn: Fix leaks of EchoData content
- Date: Tue, 14 Oct 2014 16:21:22 +0000 (UTC)
commit 87f82c227694279d7e6ad26ca90112835a69c7c5
Author: Christophe Fergeau <cfergeau redhat com>
Date: Wed Oct 1 22:37:11 2014 +0200
test-spawn: Fix leaks of EchoData content
EchoData::error and EchoData::output must be freed after
use.
https://bugzilla.gnome.org/show_bug.cgi?id=738508
egg/test-spawn.c | 6 ++++++
1 files changed, 6 insertions(+), 0 deletions(-)
---
diff --git a/egg/test-spawn.c b/egg/test-spawn.c
index ee63b29..2a0fec1 100644
--- a/egg/test-spawn.c
+++ b/egg/test-spawn.c
@@ -188,6 +188,8 @@ test_sync (void)
g_assert (data.completed);
g_assert_cmpstr (data.output, ==, "80 81 82 83 84\n");
g_assert_cmpstr (data.error, ==, "1\n2\n3\n4\n5\n");
+ g_free (data.error);
+ g_free (data.output);
}
static void
@@ -233,6 +235,8 @@ test_async (void)
g_assert (data.completed);
g_assert_cmpstr (data.output, ==, "80 81 82 83 84\n");
g_assert_cmpstr (data.error, ==, "1\n2\n3\n4\n5\n");
+ g_free (data.error);
+ g_free (data.output);
}
static void
@@ -259,6 +263,8 @@ test_async_none (void)
g_assert (data.finalized);
g_assert (data.completed);
g_assert (!data.output);
+ g_free (data.error);
+ g_free (data.output);
}
static void
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]