Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(dracut-install): release memory allocated for regular expressions
Use `regfree` to free memory allocated by `regcomp`. Quoting [1]: "If the preg argument to regexec() or regfree() is not a compiled regular expression returned by regcomp(), the result is undefined." Therefore, `regfree` must only be called if `regcomp` succeeded. [1] https://pubs.opengroup.org/onlinepubs/9699919799/functions/regcomp.html
- Loading branch information