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 committed 2025-08-12 14:35:35 -06:00
1 parent e69573bc2b
commit d831bd8878
1 file changed
+1
+1
View File
@@ -153,6 +153,7 @@ create_directory(const char *path)
}
}
free(partial);
free(tofree);
}