0
0
mirror of https://github.com/rkd77/elinks.git synced 2025-10-21 19:54:04 -04:00

config: Don't mem_free(NULL).

This commit is contained in:
Kalle Olavi Niemitalo
2008-02-03 04:17:21 +02:00
committed by Kalle Olavi Niemitalo
parent c92cd01e0b
commit 09829a0b52

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);
*file = skip_white(*file, line);
if (!keystroke || !**file) {
mem_free(keymap); mem_free(keystroke);
mem_free(keymap); mem_free_if(keystroke);
return ERROR_OPTION;
}