Skip to content

Commit a1f3f68

Browse files
Merge pull request #1214 from jan-cerny/d68
Plug a memory leak
2 parents 2eab540 + df0141f commit a1f3f68

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/OVAL/probes/unix/file_probe.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -393,6 +393,8 @@ static int file_cb(const char *prefix, const char *p, const char *f, void *ptr,
393393
if (se_acl == NULL) {
394394
probe_item_ent_add(item, "has_extended_acl", NULL, SEXP_number_newb(true));
395395
probe_itement_setstatus(item, "has_extended_acl", 1, SYSCHAR_STATUS_DOES_NOT_EXIST);
396+
} else {
397+
SEXP_free(se_acl);
396398
}
397399

398400
SEXP_free(se_grp_id);

0 commit comments

Comments
 (0)