1
0
mirror of https://github.com/hashcat/hashcat.git synced 2024-11-26 18:08:20 +00:00

memory: we should free this memory in case of error in folder.c

This commit is contained in:
philsmd 2017-02-14 14:45:27 +01:00
parent dc2ecc9dae
commit d92f8b1d82
No known key found for this signature in database
GPG Key ID: 4F25D016D9D6A8AF
2 changed files with 6 additions and 0 deletions

View File

@ -68,6 +68,7 @@
- OpenCL Device Management: Fixed several memory leaks when initialization of a device/platform failed
- Outfile Check: Fixed a memory leak for failed outfile reads
- Rule Engine: Fixed several memory leaks when loading of rules failed
- Session Management: Fixed several memory leaks when profile/install folder setup failed
- OpenCL Header: Updated CL_* errorcode to OpenCL 1.2 standard
- OpenCL Runtime: Updated AMDGPU-Pro driver version check, do warn if version 16.60 is detected which is known to be broken
- OpenCL Kernel: Renumbered hash-mode 7600 to 4521

View File

@ -412,6 +412,11 @@ int folder_config_init (hashcat_ctx_t *hashcat_ctx, MAYBE_UNUSED const char *ins
{
event_log_error (hashcat_ctx, "%s: %s", cpath, strerror (errno));
hcfree (shared_dir);
hcfree (profile_dir);
hcfree (cpath_real);
hcfree (session_dir);
return -1;
}