[systemd-commits] src/test

Thomas H.P. Andersen phomes at kemper.freedesktop.org
Wed Dec 3 15:13:29 PST 2014


 src/test/test-path-util.c |    2 ++
 1 file changed, 2 insertions(+)

New commits:
commit f08c4c08c7c2ce0fdfb4cf49642b00fbfb15185f
Author: Thomas Hindoe Paaboel Andersen <phomes at gmail.com>
Date:   Thu Dec 4 00:05:20 2014 +0100

    test-path-util: fix a leak

diff --git a/src/test/test-path-util.c b/src/test/test-path-util.c
index 4ebbfa9..58b456a 100644
--- a/src/test/test-path-util.c
+++ b/src/test/test-path-util.c
@@ -109,6 +109,8 @@ static void test_find_binary(const char *self, bool local) {
 
         assert_se(find_binary("/some/dir/xxxx-xxxx", local, &p) ==
                   (local ? -ENOENT : 0));
+        if (!local)
+                free(p);
 }
 
 static void test_prefixes(void) {



More information about the systemd-commits mailing list