1
0
mirror of https://github.com/hashcat/hashcat.git synced 2024-12-24 07:28:10 +00:00

Merge pull request #1068 from philsmd/master

memory: we should free this memory in case of error in folder.c
This commit is contained in:
Jens Steube 2017-02-14 14:46:42 +01:00 committed by GitHub
commit ddf3725abc
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;
}