pcm - ladspa: fix small memory leak in snd_pcm_ladspa_free_instances()
authorJaroslav Kysela <perex@perex.cz>
Thu, 22 Jul 2010 09:33:20 +0000 (11:33 +0200)
committerJaroslav Kysela <perex@perex.cz>
Thu, 22 Jul 2010 09:33:20 +0000 (11:33 +0200)
Signed-off-by: Jaroslav Kysela <perex@perex.cz>

src/pcm/pcm_ladspa.c

index 5161820..c413c10 100644 (file)
@@ -341,6 +341,8 @@ static void snd_pcm_ladspa_free_instances(snd_pcm_t *pcm, snd_pcm_ladspa_t *lads
                                                free(instance->output.m_data[idx]);
                                        free(instance->output.m_data);
                                 }
+                                free(instance->input.data);
+                                free(instance->output.data);
                                list_del(&(instance->list));
                                snd_pcm_ladspa_free_eps(&instance->input);
                                snd_pcm_ladspa_free_eps(&instance->output);