mirror of
https://github.com/hashcat/hashcat.git
synced 2025-02-02 02:41:35 +00:00
(keyboard_layout) remove unused *rc* vars, change free with hcfree
This commit is contained in:
parent
f7898da386
commit
cdbef854a4
@ -48,13 +48,11 @@ bool initialize_keyboard_layout_mapping (const char *filename, keyboard_layout_m
|
|||||||
token.sep[1] = 0x09;
|
token.sep[1] = 0x09;
|
||||||
token.attr[1] = TOKEN_ATTR_VERIFY_LENGTH;
|
token.attr[1] = TOKEN_ATTR_VERIFY_LENGTH;
|
||||||
|
|
||||||
const int rc_tokenizer = input_tokenizer ((const u8 *) line_buf, (const int) line_len, &token);
|
if (input_tokenizer ((const u8 *) line_buf, (const int) line_len, &token) != PARSER_OK)
|
||||||
|
|
||||||
if (rc_tokenizer != PARSER_OK)
|
|
||||||
{
|
{
|
||||||
hc_fclose (&fp);
|
hc_fclose (&fp);
|
||||||
|
|
||||||
free (line_buf);
|
hcfree (line_buf);
|
||||||
|
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
@ -69,7 +67,7 @@ bool initialize_keyboard_layout_mapping (const char *filename, keyboard_layout_m
|
|||||||
{
|
{
|
||||||
hc_fclose (&fp);
|
hc_fclose (&fp);
|
||||||
|
|
||||||
free (line_buf);
|
hcfree (line_buf);
|
||||||
|
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
@ -81,7 +79,7 @@ bool initialize_keyboard_layout_mapping (const char *filename, keyboard_layout_m
|
|||||||
|
|
||||||
hc_fclose (&fp);
|
hc_fclose (&fp);
|
||||||
|
|
||||||
free (line_buf);
|
hcfree (line_buf);
|
||||||
|
|
||||||
// we need to sort this by length to ensure the largest blocks come first in mapping
|
// we need to sort this by length to ensure the largest blocks come first in mapping
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user