From b2734a91bde0d7ddaf8e6953c9821922d0a8675e Mon Sep 17 00:00:00 2001 From: "H. Peter Anvin (Intel)" Date: Tue, 7 Jul 2026 15:29:41 -0700 Subject: [PATCH] output/outobj.c: free the section name on cleanup It is a completely unimportant memory leak as the process is about to exit, but it is easy to clean up. Signed-off-by: H. Peter Anvin (Intel) --- output/outobj.c | 1 + 1 file changed, 1 insertion(+) diff --git a/output/outobj.c b/output/outobj.c index 5ac1b8a2d..9ec289eaf 100644 --- a/output/outobj.c +++ b/output/outobj.c @@ -711,6 +711,7 @@ static void obj_cleanup(void) nasm_free(pubtmp->name); nasm_free(pubtmp); } + nasm_free(segtmp->name); nasm_free(segtmp->segclass); nasm_free(segtmp->overlay); nasm_free(segtmp);