Skip to content

Commit 24fe371

Browse files
authored
Merge pull request #1212 from OpenSCAP/fix_leak_ncache
Fix leak in OVAL/probes/probe/ncache.c
2 parents 3b060ec + 385a690 commit 24fe371

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/OVAL/probes/probe/ncache.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -143,6 +143,7 @@ SEXP_t *probe_ncache_add (probe_ncache_t *cache, const char *name)
143143

144144
/* TODO: check if this is really needed */
145145
if (cache->name == NULL || cache->size <= cache->real) {
146+
SEXP_free(ref);
146147
return NULL;
147148
}
148149

0 commit comments

Comments
 (0)