Skip to content

Commit 16b80bb

Browse files
committed
Free pd->uri as well
1 parent bcedc00 commit 16b80bb

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/OVAL/oval_probe_ext.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -140,6 +140,7 @@ static int oval_pdtbl_add(oval_pdtbl_t *tbl, oval_subtype_t type, int sd, const
140140
tbl->memb = realloc(tbl->memb, sizeof(oval_pd_t *) * (++tbl->count));
141141

142142
if (tbl->memb == NULL) {
143+
free(pd->uri);
143144
free(pd);
144145
return -1;
145146
}

0 commit comments

Comments
 (0)