diff options
Diffstat (limited to 'src/pcm/pcm_shm.c')
-rw-r--r-- | src/pcm/pcm_shm.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/pcm/pcm_shm.c b/src/pcm/pcm_shm.c index 0640c4bb..c9439661 100644 --- a/src/pcm/pcm_shm.c +++ b/src/pcm/pcm_shm.c @@ -773,8 +773,7 @@ int snd_pcm_shm_open(snd_pcm_t **pcmp, const char *name, close(sock); if (ctrl) shmdt(ctrl); - if (shm) - free(shm); + free(shm); return result; } |