git: 81b895a95bda - main - pipe_paircreate(): do not leak pipepair memory on error
Konstantin Belousov
kib at FreeBSD.org
Mon Aug 16 14:09:15 UTC 2021
The branch main has been updated by kib:
URL: https://cgit.FreeBSD.org/src/commit/?id=81b895a95bdab28897bf948f5265fad1f51f8aa2
commit 81b895a95bdab28897bf948f5265fad1f51f8aa2
Author: Konstantin Belousov <kib at FreeBSD.org>
AuthorDate: 2021-08-16 09:24:49 +0000
Commit: Konstantin Belousov <kib at FreeBSD.org>
CommitDate: 2021-08-16 14:08:44 +0000
pipe_paircreate(): do not leak pipepair memory on error
Reported and tested by: pho
Sponsored by: The FreeBSD Foundation
MFC after: 3 days
---
sys/kern/sys_pipe.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/sys/kern/sys_pipe.c b/sys/kern/sys_pipe.c
index d226543c0118..ee6ccbbad322 100644
--- a/sys/kern/sys_pipe.c
+++ b/sys/kern/sys_pipe.c
@@ -415,6 +415,7 @@ fail:
#ifdef MAC
mac_pipe_destroy(pp);
#endif
+ uma_zfree(pipe_zone, pp);
return (error);
}
More information about the dev-commits-src-main
mailing list