diff options
author | Thomas Hindoe Paaboel Andersen <phomes@gmail.com> | 2015-06-03 19:49:04 +0200 |
---|---|---|
committer | Thomas Hindoe Paaboel Andersen <phomes@gmail.com> | 2015-06-03 19:50:02 +0200 |
commit | 602ee553e40571eeb92e7a6f397550355ba0228b (patch) | |
tree | 7744c0f9b706a67e821bf25fed13f6f2e844e00a | |
parent | eb71a33158ecae7f0ba8499bc4f3c674ceaebfd5 (diff) | |
download | systemd-602ee553e40571eeb92e7a6f397550355ba0228b.tar.gz |
test-util: fix a memleak
-rw-r--r-- | src/test/test-util.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/test/test-util.c b/src/test/test-util.c index 7a398fafbe..9d5516a18d 100644 --- a/src/test/test-util.c +++ b/src/test/test-util.c @@ -460,6 +460,8 @@ static void test_cunescape(void) { assert_se(cunescape("\\u0000", 0, &unescaped) < 0); assert_se(cunescape("\\u00DF\\U000000df\\u03a0\\U00000041", UNESCAPE_RELAX, &unescaped) >= 0); assert_se(streq_ptr(unescaped, "ßßΠA")); + free(unescaped); + unescaped = NULL; assert_se(cunescape("\\073", 0, &unescaped) >= 0); assert_se(streq_ptr(unescaped, ";")); |