1
0
mirror of https://github.com/rkd77/elinks.git synced 2024-12-04 14:46:47 -05:00

config: Don't mem_free(NULL).

(cherry picked from commit 09829a0b52)
This commit is contained in:
Kalle Olavi Niemitalo 2008-02-03 04:17:21 +02:00 committed by Kalle Olavi Niemitalo
parent 3c000d2c2e
commit 1eeb2b198a

View File

@ -229,7 +229,7 @@ parse_bind(struct option *opt_tree, unsigned char **file, int *line,
keystroke = option_types[OPT_STRING].read(NULL, file, line); keystroke = option_types[OPT_STRING].read(NULL, file, line);
*file = skip_white(*file, line); *file = skip_white(*file, line);
if (!keystroke || !**file) { if (!keystroke || !**file) {
mem_free(keymap); mem_free(keystroke); mem_free(keymap); mem_free_if(keystroke);
return ERROR_OPTION; return ERROR_OPTION;
} }