Date: Tue, 12 Aug 2025 20:35:28 GMT From: Warner Losh <imp@FreeBSD.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org Subject: git: d831bd8878db - main - autofs: partial is also leaked. Message-ID: <202508122035.57CKZSGh061996@gitrepo.freebsd.org>
next in thread | raw e-mail | index | archive | help
The branch main has been updated by imp: URL: https://cgit.FreeBSD.org/src/commit/?id=d831bd8878db38c5c84477a2efa24bdbbf2fead6 commit d831bd8878db38c5c84477a2efa24bdbbf2fead6 Author: Warner Losh <imp@FreeBSD.org> AuthorDate: 2025-08-10 22:43:16 +0000 Commit: Warner Losh <imp@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); }
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202508122035.57CKZSGh061996>