From edfa7f18e06091d469251b80b247d54759ba6147 Mon Sep 17 00:00:00 2001 From: Peter Zmanovsky <48548636+peter15914@users.noreply.github.com> Date: Sat, 4 Jan 2025 06:32:50 +0500 Subject: [PATCH] bugfix: fix possible memory leak in fs_home.c (#6598) --- src/firejail/fs_home.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/firejail/fs_home.c b/src/firejail/fs_home.c index 9d9832c15..43283a7ff 100644 --- a/src/firejail/fs_home.c +++ b/src/firejail/fs_home.c @@ -194,6 +194,7 @@ static int store_asoundrc(void) { if (stat(src, &s) == 0) { if (s.st_uid != getuid()) { fwarning(".asoundrc is not owned by the current user, skipping...\n"); + free(src); return 0; }