Skip to content

Commit

Permalink
bugfix: fix possible memory leak in fs_home.c (#6598)
Browse files Browse the repository at this point in the history
  • Loading branch information
peter15914 authored Jan 4, 2025
1 parent db1ea0b commit edfa7f1
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/firejail/fs_home.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down

0 comments on commit edfa7f1

Please sign in to comment.