Skip to content

Commit a9c6bb1

Browse files
committed
Move line with check in textfilecontent54.c to ensure that memory is freed, if "assume_d" fails.
1 parent 1509a1b commit a9c6bb1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/OVAL/probes/independent/textfilecontent54.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -406,9 +406,9 @@ int probe_main(probe_ctx *ctx, void *arg)
406406
SEXP_t *ent_val;
407407
ent_val = probe_ent_getval(patt_ent);
408408
pfd.pattern = SEXP_string_cstr(ent_val);
409-
assume_d(pfd.pattern != NULL, -1);
410409
SEXP_free(patt_ent);
411410
SEXP_free(ent_val);
411+
assume_d(pfd.pattern != NULL, -1);
412412

413413
/* wtf?
414414
i_val = s_val = "0";

0 commit comments

Comments
 (0)