From fcd27aa57ff71448b82677a408bcd07e05bfac3d Mon Sep 17 00:00:00 2001 From: Christian Babeux Date: Thu, 6 Dec 2012 15:42:48 -0500 Subject: [PATCH] Cygwin: Unlink shm and wait pipe file Signed-off-by: Christian Babeux Signed-off-by: Mathieu Desnoyers --- libringbuffer/shm.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/libringbuffer/shm.c b/libringbuffer/shm.c index 06724e58..4d743399 100644 --- a/libringbuffer/shm.c +++ b/libringbuffer/shm.c @@ -369,6 +369,7 @@ void shmp_object_destroy(struct shm_object *obj) } if (obj->shm_path) { + unlink(obj->shm_path); free(obj->shm_path); } @@ -383,6 +384,7 @@ void shmp_object_destroy(struct shm_object *obj) } if (obj->wait_pipe_path) { + unlink(obj->wait_pipe_path); free(obj->wait_pipe_path); } } -- 2.34.1