From d831bd8878db38c5c84477a2efa24bdbbf2fead6 Mon Sep 17 00:00:00 2001 From: Warner Losh Date: Sun, 10 Aug 2025 16:43:16 -0600 Subject: [PATCH] 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 --- usr.sbin/autofs/common.c | 1 + 1 file changed, 1 insertion(+) diff --git a/usr.sbin/autofs/common.c b/usr.sbin/autofs/common.c index 6b98214162a..2dd7c290ceb 100644 --- a/usr.sbin/autofs/common.c +++ b/usr.sbin/autofs/common.c @@ -153,6 +153,7 @@ create_directory(const char *path) } } + free(partial); free(tofree); }