Skip to content

Commit 9537734

Browse files
authored
Merge pull request #1201 from jan-cerny/def15
Plug a memory leak
2 parents 548fc02 + 16b80bb commit 9537734

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/OVAL/oval_probe_ext.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -140,6 +140,8 @@ 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);
144+
free(pd);
143145
return -1;
144146
}
145147

0 commit comments

Comments
 (0)