Open aafeijoo-suse opened 10 months ago
This issue is being marked as stale because it has not had any recent activity. It will be closed if no further activity occurs. If this is still an issue in the latest release of Dracut and you would like to keep it open please comment on this issue within the next 7 days. Thank you for your contributions.
This issue is being marked as stale because it has not had any recent activity. It will be closed if no further activity occurs. If this is still an issue in the latest release of Dracut and you would like to keep it open please comment on this issue within the next 7 days. Thank you for your contributions.
Use
regfree
to free memory allocated byregcomp
. 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 ifregcomp
succeeded.[1] https://pubs.opengroup.org/onlinepubs/9699919799/functions/regcomp.html
Checklist