mirror of
https://github.com/freebsd/freebsd-src.git
synced 2026-10-28 11:25:21 +01:00
autofs: partial is also leaked.
partial is also always leaked (since we reallocate it each time through the loop). It should be freed before we return as well. Noticed by: kib Sponsored by: Netflix
This commit is contained in:
1 parent
e69573bc2b
commit
d831bd8878
1 file changed
+1
@@ -153,6 +153,7 @@ create_directory(const char *path)
|
||||
}
|
||||
}
|
||||
|
||||
free(partial);
|
||||
free(tofree);
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user