The branch stable/13 has been updated by kib:

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

commit bbba66e3b65fa2db53aa2274ef1e797ab69229ce
Author:     Konstantin Belousov <[email protected]>
AuthorDate: 2021-08-16 09:24:49 +0000
Commit:     Konstantin Belousov <[email protected]>
CommitDate: 2021-08-19 11:21:56 +0000

    pipe_paircreate(): do not leak pipepair memory on error
    
    (cherry picked from commit 81b895a95bdab28897bf948f5265fad1f51f8aa2)
---
 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 ec0fb3860eda..b19fe8dbc0c0 100644
--- a/sys/kern/sys_pipe.c
+++ b/sys/kern/sys_pipe.c
@@ -391,6 +391,7 @@ fail:
 #ifdef MAC
        mac_pipe_destroy(pp);
 #endif
+       uma_zfree(pipe_zone, pp);
        return (error);
 }
 
_______________________________________________
[email protected] mailing list
https://lists.freebsd.org/mailman/listinfo/dev-commits-src-all
To unsubscribe, send any mail to "[email protected]"

Reply via email to