mirror of
https://github.com/hashcat/hashcat.git
synced 2025-01-22 21:51:07 +00:00
CPU Affinity: Fixed memory leak when invalid cpu Id was specified
This commit is contained in:
parent
ce5117631e
commit
521c819842
@ -58,6 +58,7 @@
|
||||
- Building: Removed the use of RPATH on linker level
|
||||
- Building: Replaced linking of CRT_glob.o with the use of int _dowildcard
|
||||
- Commandline: Do some checks related to custom-charset options if user specifies them
|
||||
- CPU Affinity: Fixed memory leak when invalid cpu Id was specified
|
||||
- Events: Improved the maximum event message handling. event_log () will now also internally make sure that the message is properly terminated
|
||||
- Files: Do several file and folder checks on startup rather than when they are actually used to avoid related error after eventual intense operations
|
||||
- Helper: Added functions to check existence, type, read- and write-permissions and rewrite sources to use them instead of stat()
|
||||
|
@ -86,6 +86,8 @@ int set_cpu_affinity (MAYBE_UNUSED hashcat_ctx_t *hashcat_ctx)
|
||||
{
|
||||
event_log_error (hashcat_ctx, "Invalid cpu_id %d specified", cpu_id);
|
||||
|
||||
hcfree (devices);
|
||||
|
||||
return (-1);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user