Skip to content

Commit 24ace42

Browse files
committed
Freed a se_ruid sexp that is deep-copied by probe_item_create.
1 parent cdf1ef8 commit 24ace42

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/OVAL/probes/unix/process.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -98,6 +98,9 @@ static void report_finding(struct result_info *res, probe_ctx *ctx)
9898
"tty", OVAL_DATATYPE_STRING, res->tty,
9999
"user_id", OVAL_DATATYPE_INTEGER, (int64_t)res->user_id,
100100
NULL);
101+
if (se_ruid) {
102+
SEXP_free(se_ruid);
103+
}
101104

102105
probe_item_collect(ctx, item);
103106
}

0 commit comments

Comments
 (0)