Skip to content

Commit 416e2f4

Browse files
committed
Fix incorrect unlink in error path
1 parent be11454 commit 416e2f4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/coolkey/machdep.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -364,7 +364,7 @@ SHMem::initSegment(const char *name, int size, bool &init)
364364
}
365365
ret = write(shmemData->fd,buf,len);
366366
if (ret != len) {
367-
unlink(shmemData->fd,buf,len);
367+
unlink(shmemData->path);
368368
#ifdef FULL_CLEANUP
369369
flock(shmemData->fd, LOCK_UN);
370370
#endif

0 commit comments

Comments
 (0)