]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
analyze: fix minor memleak
authorLennart Poettering <lennart@poettering.net>
Fri, 25 Oct 2019 14:05:11 +0000 (16:05 +0200)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Wed, 30 Oct 2019 14:50:37 +0000 (15:50 +0100)
src/analyze/analyze.c

index 1871a4363ef8c5993da681213bf64cc0ba72b072..2d541fe701711ea15b8560489073636c9ff49ec6 100644 (file)
@@ -1713,7 +1713,7 @@ static void kernel_syscalls_remove(Set *s, const SyscallFilterSet *set) {
                 if (syscall[0] == '@')
                         continue;
 
-                (void) set_remove(s, syscall);
+                free(set_remove(s, syscall));
         }
 }