memory: we should free this memory in case of error in folder.c
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user