diff mbox series

[pseudo,4/7] pseudo_util: Avoid a memory leak in pseudo_dropenv()

Message ID 20260701131336.3578279-4-richard.purdie@linuxfoundation.org
State New
Headers show
Series [pseudo,1/7] pseudo.h: Avoid accessing unallocated memory | expand

Commit Message

Richard Purdie July 1, 2026, 1:13 p.m. UTC
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
---
 pseudo_util.c | 1 +
 1 file changed, 1 insertion(+)
diff mbox series

Patch

diff --git a/pseudo_util.c b/pseudo_util.c
index 126746f..5e77977 100644
--- a/pseudo_util.c
+++ b/pseudo_util.c
@@ -1000,6 +1000,7 @@  void pseudo_dropenv() {
 		} else {
 			SETENV(PRELINK_LIBRARIES, "", 1);
 		}
+		free(ld_preload);
 	}
 }