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
2 changed files with 6 additions and 0 deletions
+5
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;
}