Skip to content

Commit b88bc52

Browse files
peter15914kmk3
authored andcommitted
bugfix: fix possible memory leak in fs_home.c
1 parent db1ea0b commit b88bc52

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/firejail/fs_home.c

+1
Original file line numberDiff line numberDiff line change
@@ -194,6 +194,7 @@ static int store_asoundrc(void) {
194194
if (stat(src, &s) == 0) {
195195
if (s.st_uid != getuid()) {
196196
fwarning(".asoundrc is not owned by the current user, skipping...\n");
197+
free(src);
197198
return 0;
198199
}
199200

0 commit comments

Comments
 (0)