diff options
Diffstat (limited to 'src/firejail/fs_whitelist.c')
-rw-r--r-- | src/firejail/fs_whitelist.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/firejail/fs_whitelist.c b/src/firejail/fs_whitelist.c index 8a402f692..1fd1fb675 100644 --- a/src/firejail/fs_whitelist.c +++ b/src/firejail/fs_whitelist.c | |||
@@ -494,6 +494,7 @@ void fs_whitelist(void) { | |||
494 | printf("\"%s\" disabled by --private\n", entry->data); | 494 | printf("\"%s\" disabled by --private\n", entry->data); |
495 | 495 | ||
496 | entry->data = EMPTY_STRING; | 496 | entry->data = EMPTY_STRING; |
497 | free(fname); | ||
497 | continue; | 498 | continue; |
498 | } | 499 | } |
499 | 500 | ||
@@ -638,6 +639,7 @@ void fs_whitelist(void) { | |||
638 | } | 639 | } |
639 | } | 640 | } |
640 | else { | 641 | else { |
642 | free(fname); | ||
641 | goto errexit; | 643 | goto errexit; |
642 | } | 644 | } |
643 | 645 | ||