Skip to content

Commit af62ca6

Browse files
authored
Merge pull request #1934 from 0intro/dpkginfo_reply_leak
Fix leak of dpkginfo_reply_t fields
2 parents fba868f + dd006f7 commit af62ca6

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/OVAL/probes/unix/linux/dpkginfo-helper.cxx

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -116,6 +116,11 @@ void dpkginfo_free_reply(struct dpkginfo_reply_t *reply)
116116
{
117117
if (reply) {
118118
free(reply->name);
119+
free(reply->arch);
120+
free(reply->epoch);
121+
free(reply->release);
122+
free(reply->version);
123+
free(reply->evr);
119124
delete reply;
120125
}
121126
}

0 commit comments

Comments
 (0)