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:
Warner Losh
2025-08-10 16:43:16 -06:00
parent e69573bc2b
commit d831bd8878
+1
View File
@@ -153,6 +153,7 @@ create_directory(const char *path)
}
}
free(partial);
free(tofree);
}