Skip to content

Commit 548fc02

Browse files
authored
Merge pull request #1213 from mildass/fix_rpmverifypackage_probe_memory_leaks
Free "g_rpm" variable in src/OVAL/probes/unix/linux/rpmverifypackage_probe.c
2 parents 24fe371 + 0773e95 commit 548fc02

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/OVAL/probes/unix/linux/rpmverifypackage_probe.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -335,6 +335,8 @@ void *rpmverifypackage_probe_init(void)
335335
if (CHROOT_IS_SET()) {
336336
rpmLibsPreload();
337337
if (CHROOT_ENTER() < 0) {
338+
probe_chroot_free(&g_rpm->chr);
339+
free(g_rpm);
338340
return (NULL);
339341
}
340342
}

0 commit comments

Comments
 (0)