diff options
Diffstat (limited to 'src/collect')
-rw-r--r-- | src/collect/collect.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/collect/collect.c b/src/collect/collect.c index 834e27683c..e938d41728 100644 --- a/src/collect/collect.c +++ b/src/collect/collect.c @@ -453,6 +453,7 @@ int main(int argc, char **argv) him->name = malloc(strlen(argv[i]) + 1); if (!him->name) { + free(him); /* clang reported memleak ; him is thrown away here */ ret = ENOMEM; goto out; } |