Skip to content

Commit c5b88e6

Browse files
committed
Merge branch 'maint-1.2'
2 parents 5fe6cc6 + 2f5331f commit c5b88e6

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

src/OVAL/probes/independent/textfilecontent54_probe.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -301,6 +301,7 @@ static int process_file(const char *prefix, const char *path, const char *file,
301301
free(whole_path);
302302
free(whole_path_with_prefix);
303303

304+
/* coverity[leaked_storage] - substrs is not leaked */
304305
return ret;
305306
}
306307

swig/openscap.i

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -90,6 +90,7 @@
9090
}
9191
$1[i] = 0;
9292
} else {
93+
free($1);
9394
PyErr_SetString(PyExc_TypeError,"not a list");
9495
return NULL;
9596
}
@@ -163,6 +164,9 @@
163164
$1[i] = (struct oval_syschar_model *) arg;
164165
}
165166
}
167+
%typemap(freearg) struct oval_syschar_model ** {
168+
free($1);
169+
}
166170
#elif defined(SWIGPERL)
167171
/* Definitions for PERL */
168172
#endif

0 commit comments

Comments
 (0)