mirror of
https://github.com/netblue30/firejail.git
synced 2026-05-21 06:45:29 -06:00
bugfix: fix possible memory leak in fs_home.c (#6598)
This commit is contained in:
parent
db1ea0bdcf
commit
edfa7f18e0
1 changed files with 1 additions and 0 deletions
|
|
@ -194,6 +194,7 @@ static int store_asoundrc(void) {
|
||||||
if (stat(src, &s) == 0) {
|
if (stat(src, &s) == 0) {
|
||||||
if (s.st_uid != getuid()) {
|
if (s.st_uid != getuid()) {
|
||||||
fwarning(".asoundrc is not owned by the current user, skipping...\n");
|
fwarning(".asoundrc is not owned by the current user, skipping...\n");
|
||||||
|
free(src);
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue