Skip to contentSkip to conversation

sbase : fixed missing free

PATCH Superseded Renu Tyagi 1 participant 1 message Sep 19, 2014

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore

Renu Tyagi

author
#0 lore raw

PATCH 3/11 sbase : fixed missing free

Signed-off-by renu tyagi

---
modules/mixer/simple/sbase.c | 1 +

1 files changed, 1 insertions(+), 0 deletions(-)
modules/mixer/simple/sbase.c +1 -0
index 97feee8..bb2f59d 100644
@@ -377,6 +377,7 @@ static int simple_event_add1(snd_mixer_class_t *class,
                if (ctype != SND_CTL_ELEM_TYPE_BOOLEAN) {
                      __invalid_type:
                        snd_mixer_selem_id_free(id);
+                       free(hsimple);
                        return -EINVAL;
                }
                break;

--
1.7.1

---
 modules/mixer/simple/sbase.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
modules/mixer/simple/sbase.c +1 -0
index 97feee8..bb2f59d 100644
@@ -377,6 +377,7 @@ static int simple_event_add1(snd_mixer_class_t *class,
 		if (ctype != SND_CTL_ELEM_TYPE_BOOLEAN) {
 		      __invalid_type:
 		      	snd_mixer_selem_id_free(id);
+			free(hsimple);
 			return -EINVAL;
 		}
 		break;
Signature · 1 line
1.7.1