From a8beedcaa6f25a0dda36975a30a65a2038df6e30 Mon Sep 17 00:00:00 2001 From: Andre Noll Date: Thu, 13 Nov 2008 20:55:51 +0100 Subject: [PATCH] call_callback(): Fix a shm leak in afs.c. We forgot to detach the shm area passed from the child which results in "no space left" messages if many audio files are added and the number of shared memory areas exceeds 4096. --- afs.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/afs.c b/afs.c index aa008f99..5f47941e 100644 --- a/afs.c +++ b/afs.c @@ -892,7 +892,7 @@ static int call_callback(int fd, int query_shmid) query.data = (char *)query_shm + sizeof(*cq); query.size = cq->query_size; cq->handler(fd, &query); - return 1; + return shm_detach(query_shm); } static int execute_server_command(void) -- 2.39.5