bugfix: fix possible memory leak in fs_home.c (#6598)

This commit is contained in:
Peter Zmanovsky 2025-01-04 06:32:50 +05:00 committed by GitHub
parent db1ea0bdcf
commit edfa7f18e0
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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;
}