diff options
author | Daniel Mack <github@zonque.org> | 2015-08-26 00:05:33 +0200 |
---|---|---|
committer | Daniel Mack <github@zonque.org> | 2015-08-26 00:05:33 +0200 |
commit | 7c268a04894852b6aa564668014fe6e070d590be (patch) | |
tree | f6cf38a4b55f88c6f5e7fe65b7553d81a0543071 /src | |
parent | 487ebe593ccc5e02de31130eb2de05478d1b53b0 (diff) | |
parent | 21e5a0bea08243ba230e889f6af261ff96145f1f (diff) |
Merge pull request #1043 from phomes/master
test-util: fix a memleak
Diffstat (limited to 'src')
-rw-r--r-- | src/test/test-util.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/test/test-util.c b/src/test/test-util.c index 3c1bac4606..dff38ab6f6 100644 --- a/src/test/test-util.c +++ b/src/test/test-util.c @@ -1539,6 +1539,7 @@ static void test_extract_first_word(void) { p = original = "\""; assert_se(extract_first_word(&p, &t, NULL, 0) == 1); assert_se(streq(t, "\"")); + free(t); assert_se(isempty(p)); p = original = "\""; @@ -1548,6 +1549,7 @@ static void test_extract_first_word(void) { p = original = "\'"; assert_se(extract_first_word(&p, &t, NULL, 0) == 1); assert_se(streq(t, "\'")); + free(t); assert_se(isempty(p)); p = original = "\'"; @@ -1557,6 +1559,7 @@ static void test_extract_first_word(void) { p = original = "\'fooo"; assert_se(extract_first_word(&p, &t, NULL, 0) == 1); assert_se(streq(t, "\'fooo")); + free(t); assert_se(isempty(p)); p = original = "\'fooo"; |