API: Bugfix: Remove memory leak from set_option_to

This commit is contained in:
Thiago de Arruda 2014-05-26 13:39:19 -03:00
parent a80a68c927
commit 0cc6050300

View File

@ -267,6 +267,7 @@ void set_option_to(void *to, int type, String name, Object value, Error *err)
char *val = xstrndup(value.data.string.data, value.data.string.size);
set_option_value_for(key, 0, val, opt_flags, type, to, err);
free(val);
}
cleanup: