summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorrrelyea <rrelyea@fba4d07e-fe0f-4d7f-8147-e0026e666dc0>2010-09-20 22:11:38 +0000
committerrrelyea <rrelyea@fba4d07e-fe0f-4d7f-8147-e0026e666dc0>2010-09-20 22:11:38 +0000
commit51365aae4f3961b45126207423d40b61615159c4 (patch)
tree3f3b3f2d9ff740cf57ea95284fb179c0add4fc11 /src
parenta4c3df16e9fec459b3557ed100f05b6ecdfd3a67 (diff)
Fix incorrect unlink in error path
git-svn-id: http://svn.fedorahosted.org/svn/coolkey/trunk@91 fba4d07e-fe0f-4d7f-8147-e0026e666dc0
Diffstat (limited to 'src')
-rw-r--r--src/coolkey/machdep.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/coolkey/machdep.cpp b/src/coolkey/machdep.cpp
index 3220b8d..d1696bd 100644
--- a/src/coolkey/machdep.cpp
+++ b/src/coolkey/machdep.cpp
@@ -364,7 +364,7 @@ SHMem::initSegment(const char *name, int size, bool &init)
}
ret = write(shmemData->fd,buf,len);
if (ret != len) {
- unlink(shmemData->fd,buf,len);
+ unlink(shmemData->path);
#ifdef FULL_CLEANUP
flock(shmemData->fd, LOCK_UN);
#endif