Skip to content

Commit 83709fc

Browse files
authored
Merge pull request #2194 from jan-cerny/openscaphub_141
Fix problems reported by OpenScanHub
2 parents 829598a + b8d638b commit 83709fc

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

src/OVAL/probes/independent/textfilecontent_probe.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -213,6 +213,7 @@ static int process_file(const char *prefix, const char *path, const char *filena
213213

214214
for (k = 0; k < substr_cnt; ++k)
215215
free(substrs[k]);
216+
free(substrs);
216217
}
217218
}
218219

src/XCCDF_POLICY/xccdf_policy_remediate.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -707,7 +707,7 @@ struct blueprint_customizations {
707707

708708
static inline int _parse_blueprint_fix(const char *fix_text, struct blueprint_customizations *customizations)
709709
{
710-
char *err;
710+
char *err = NULL;
711711
int errofs;
712712
int ret = 0;
713713

@@ -768,6 +768,7 @@ static inline int _parse_blueprint_fix(const char *fix_text, struct blueprint_cu
768768
}
769769

770770
exit:
771+
oscap_pcre_err_free(err);
771772
for (int i = 0; tab[i].pattern != NULL; i++)
772773
oscap_pcre_free(tab[i].re);
773774

0 commit comments

Comments
 (0)