From: Takashi Iwai Date: Wed, 9 Mar 2005 11:59:37 +0000 (+0000) Subject: Fix invalid free X-Git-Tag: v1.0.9rc1~4 X-Git-Url: https://git.alsa-project.org/?a=commitdiff_plain;h=9dd4436f298e52b397ee4b2a2b4dfa57beb3db5d;p=alsa-lib.git Fix invalid free Fixed the invalid free of memory. --- diff --git a/src/control/setup.c b/src/control/setup.c index 44c9866f..e4c5f003 100644 --- a/src/control/setup.c +++ b/src/control/setup.c @@ -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) { SNDERR("Invalid value for '%s'", id); - free(tmp); goto _err; } iface = err;