Fix invalid free

Fixed the invalid free of memory.
This commit is contained in:
Takashi Iwai 2005-03-09 11:59:37 +00:00
parent 73008debc3
commit 9dd4436f29

View file

@ -418,7 +418,6 @@ static int add_elem(snd_sctl_t *h, snd_config_t *_conf, snd_config_t *private_da
} }
if ((err = snd_config_get_ctl_iface_ascii(ptr)) < 0) { if ((err = snd_config_get_ctl_iface_ascii(ptr)) < 0) {
SNDERR("Invalid value for '%s'", id); SNDERR("Invalid value for '%s'", id);
free(tmp);
goto _err; goto _err;
} }
iface = err; iface = err;