summaryrefslogtreecommitdiff
path: root/src/pcm/pcm_route.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/pcm/pcm_route.c')
-rw-r--r--src/pcm/pcm_route.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/pcm/pcm_route.c b/src/pcm/pcm_route.c
index daddf7c7..a7f7699b 100644
--- a/src/pcm/pcm_route.c
+++ b/src/pcm/pcm_route.c
@@ -513,8 +513,7 @@ static int snd_pcm_route_close(snd_pcm_t *pcm)
if (params->dsts) {
for (dst_channel = 0; dst_channel < params->ndsts; ++dst_channel) {
- if (params->dsts[dst_channel].srcs != NULL)
- free(params->dsts[dst_channel].srcs);
+ free(params->dsts[dst_channel].srcs);
}
free(params->dsts);
}