Skip to content

Commit 4e6f54d

Browse files
Yugendstevegrubb
authored andcommitted
adding the file descriptor closure
1 parent 00353f9 commit 4e6f54d

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/auditctl.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1342,6 +1342,7 @@ static int fileopt(const char *file)
13421342
fields = malloc(nf * sizeof(char *));
13431343
if (fields == NULL) {
13441344
audit_msg(LOG_ERR, "Out of memory. Check %s file, %d line", __FILE__, __LINE__);
1345+
fclose(f);
13451346
return 1;
13461347
}
13471348

0 commit comments

Comments
 (0)