(input_common.c) Fix two small leaks

This commit is contained in:
twinaphex 2015-07-09 19:54:46 +02:00
parent 7867c3ee74
commit c82ca15c91

View File

@ -295,7 +295,10 @@ void input_config_parse_joy_button(config_file_t *conf, const char *prefix,
}
if (config_get_string(conf, key_label, &tmp_a))
{
strlcpy(bind->joykey_label, tmp_a, sizeof(bind->joykey_label));
free(tmp_a);
}
}
void input_config_parse_joy_axis(config_file_t *conf, const char *prefix,
@ -329,7 +332,10 @@ void input_config_parse_joy_axis(config_file_t *conf, const char *prefix,
}
if (config_get_string(conf, key_label, &tmp_a))
{
strlcpy(bind->joyaxis_label, tmp_a, sizeof(bind->joyaxis_label));
free(tmp_a);
}
}
#if !defined(IS_JOYCONFIG)