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:
@@ -153,6 +153,7 @@ create_directory(const char *path)
|
||||
}
|
||||
}
|
||||
|
||||
free(partial);
|
||||
free(tofree);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user