Skip to content

Commit a79f0e3

Browse files
committed
Added missing free of se_filepath and se_instance.
1 parent 9895db2 commit a79f0e3

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/OVAL/probes/independent/textfilecontent.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -221,6 +221,9 @@ static SEXP_t *create_item(const char *path, const char *filename, char *pattern
221221
"text", OVAL_DATATYPE_STRING, substrs[0],
222222
NULL);
223223

224+
SEXP_string_free(se_filepath);
225+
SEXP_string_free(se_instance);
226+
224227
for (i = 1; i < substr_cnt; ++i) {
225228
probe_item_ent_add (item, "subexpression", NULL, r0 = SEXP_string_new (substrs[i], strlen (substrs[i])));
226229
SEXP_free (r0);

0 commit comments

Comments
 (0)