Skip to content

Commit

Permalink
Fix a double free
Browse files Browse the repository at this point in the history
Addresssing:
18. openscap-1.4.0/src/OVAL/probes/independent/textfilecontent_probe.c:217:3: freed_arg: "free" frees "substrs".
22. openscap-1.4.0/src/OVAL/probes/independent/textfilecontent_probe.c:217:3: double_free: Calling "free" frees pointer "substrs" which has already been freed.
  • Loading branch information
jan-cerny committed Aug 19, 2024
1 parent e03941b commit 8afec25
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion src/OVAL/probes/independent/textfilecontent_probe.c
Original file line number Diff line number Diff line change
Expand Up @@ -214,7 +214,6 @@ 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);
}

cleanup:
Expand Down

0 comments on commit 8afec25

Please sign in to comment.