Skip to content

Commit 385a690

Browse files
committed
Fix leak in OVAL/probes/probe/ncache.c
The leak was found after assume_d macro was replace by if code.
1 parent 2e25017 commit 385a690

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)