The branch main has been updated by imp:

URL: 
https://cgit.FreeBSD.org/src/commit/?id=d831bd8878db38c5c84477a2efa24bdbbf2fead6

commit d831bd8878db38c5c84477a2efa24bdbbf2fead6
Author:     Warner Losh <i...@freebsd.org>
AuthorDate: 2025-08-10 22:43:16 +0000
Commit:     Warner Losh <i...@freebsd.org>
CommitDate: 2025-08-12 20:35:35 +0000

    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 6b98214162ae..2dd7c290cebc 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);
 }
 

Reply via email to