config: fix double-free when setting bin.prefix more than once

This commit is contained in:
Ben Gardiner 2016-11-26 00:05:15 -05:00 committed by pancake
parent 0269d63ff1
commit 4c890d0b52

View File

@ -1397,7 +1397,6 @@ static int cb_binprefix(void *user, void *data) {
if (!core || !core->bin) {
return false;
}
R_FREE (core->bin->prefix);
if (node->value && *node->value) {
if (!strcmp (node->value, "auto")) {
if (!core->bin->file) {