Skip to content

Commit

Permalink
Merge pull request #2194 from jan-cerny/openscaphub_141
Browse files Browse the repository at this point in the history
Fix problems reported by OpenScanHub
  • Loading branch information
evgenyz authored Jan 10, 2025
2 parents 829598a + b8d638b commit 83709fc
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions src/OVAL/probes/independent/textfilecontent_probe.c
Original file line number Diff line number Diff line change
Expand Up @@ -213,6 +213,7 @@ static int process_file(const char *prefix, const char *path, const char *filena

for (k = 0; k < substr_cnt; ++k)
free(substrs[k]);
free(substrs);
}
}

Expand Down
3 changes: 2 additions & 1 deletion src/XCCDF_POLICY/xccdf_policy_remediate.c
Original file line number Diff line number Diff line change
Expand Up @@ -707,7 +707,7 @@ struct blueprint_customizations {

static inline int _parse_blueprint_fix(const char *fix_text, struct blueprint_customizations *customizations)
{
char *err;
char *err = NULL;
int errofs;
int ret = 0;

Expand Down Expand Up @@ -768,6 +768,7 @@ static inline int _parse_blueprint_fix(const char *fix_text, struct blueprint_cu
}

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

Expand Down

0 comments on commit 83709fc

Please sign in to comment.