git: bbba66e3b65f - stable/13 - pipe_paircreate(): do not leak pipepair memory on error

Konstantin Belousov kib at FreeBSD.org
Thu Aug 19 11:22:55 UTC 2021


The branch stable/13 has been updated by kib:

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

commit bbba66e3b65fa2db53aa2274ef1e797ab69229ce
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-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);
 }
 


More information about the dev-commits-src-branches mailing list