Skip to content

Commit e07bee9

Browse files
committed
Fix leak of filename in oval_agent_new_session
1 parent 9f83ba0 commit e07bee9

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/OVAL/oval_agent.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -112,6 +112,7 @@ oval_agent_session_t * oval_agent_new_session(struct oval_definition_model *mode
112112
/* probe sysinfo */
113113
ret = oval_probe_query_sysinfo(ag_sess->psess, &sysinfo);
114114
if (ret != 0) {
115+
free(ag_sess->filename);
115116
oval_probe_session_destroy(ag_sess->psess);
116117
oval_syschar_model_free(ag_sess->sys_model);
117118
free(ag_sess);

0 commit comments

Comments
 (0)