summaryrefslogtreecommitdiff
path: root/src/pcm/pcm_share.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/pcm/pcm_share.c')
-rw-r--r--src/pcm/pcm_share.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/pcm/pcm_share.c b/src/pcm/pcm_share.c
index d73fb8b2..cc65907d 100644
--- a/src/pcm/pcm_share.c
+++ b/src/pcm/pcm_share.c
@@ -1689,10 +1689,8 @@ int _snd_pcm_share_open(snd_pcm_t **pcmp, const char *name,
speriod_time, sbuffer_time,
channels, channels_map, stream, mode);
_free:
- if (channels_map)
- free(channels_map);
- if (sname)
- free((char *)sname);
+ free(channels_map);
+ free((char *)sname);
return err;
}
#ifndef DOC_HIDDEN