Skip to content

Commit 685a866

Browse files
committed
alsactl: free scandir list in snd_card_clean_cfgdir
Signed-off-by: Jaroslav Kysela <[email protected]>
1 parent 04ffa6a commit 685a866

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

alsactl/utils.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -353,6 +353,7 @@ int snd_card_clean_cfgdir(const char *cfgdir, int cardno)
353353
lasterr = -errno;
354354
}
355355
}
356+
free(list);
356357

357358
return lasterr;
358359
}

0 commit comments

Comments
 (0)