diff --git a/src/terminal.c b/src/terminal.c index 638cae011..cafccd235 100644 --- a/src/terminal.c +++ b/src/terminal.c @@ -906,7 +906,10 @@ void status_display_status_json (hashcat_ctx_t *hashcat_ctx) /** * build status in json */ - + + status_status_destroy (hashcat_ctx, hashcat_status); + + hcfree (hashcat_status); } @@ -1610,7 +1613,10 @@ void status_speed_json (hashcat_ctx_t *hashcat_ctx) /** * build status speed in json */ - + + status_status_destroy (hashcat_ctx, hashcat_status); + + hcfree (hashcat_status); } void status_speed (hashcat_ctx_t *hashcat_ctx) @@ -1713,7 +1719,10 @@ void status_progress_json (hashcat_ctx_t *hashcat_ctx) /** * build status progress in json */ - + + status_status_destroy (hashcat_ctx, hashcat_status); + + hcfree (hashcat_status); } void status_progress (hashcat_ctx_t *hashcat_ctx) diff --git a/src/usage.c b/src/usage.c index bc4ba0d02..cf17c12e1 100644 --- a/src/usage.c +++ b/src/usage.c @@ -36,6 +36,7 @@ static const char *const USAGE_BIG_PRE_HASHMODES[] = " --hex-wordlist | | Assume words in wordlist are given in hex |", " --force | | Ignore warnings |", " --status | | Enable automatic update of the status screen |", + " --status-json | | Enable JSON format for status ouput |", " --status-timer | Num | Sets seconds between status screen updates to X | --status-timer=1", " --stdin-timeout-abort | Num | Abort if there is no input from stdin for X seconds | --stdin-timeout-abort=300", " --machine-readable | | Display the status view in a machine-readable format |",