diff options
Diffstat (limited to 'src/firejail/profile.c')
-rw-r--r-- | src/firejail/profile.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/firejail/profile.c b/src/firejail/profile.c index e0de69e5e..5acbbec38 100644 --- a/src/firejail/profile.c +++ b/src/firejail/profile.c | |||
@@ -533,6 +533,8 @@ void profile_read(const char *fname) { | |||
533 | // verify syntax, exit in case of error | 533 | // verify syntax, exit in case of error |
534 | if (profile_check_line(ptr, lineno, fname)) | 534 | if (profile_check_line(ptr, lineno, fname)) |
535 | profile_add(ptr); | 535 | profile_add(ptr); |
536 | else | ||
537 | free(ptr); | ||
536 | } | 538 | } |
537 | fclose(fp); | 539 | fclose(fp); |
538 | } | 540 | } |