summaryrefslogtreecommitdiff
path: root/ace/MEM_SAP.cpp
diff options
context:
space:
mode:
authornanbor <nanbor@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>2002-09-12 22:41:01 +0000
committernanbor <nanbor@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>2002-09-12 22:41:01 +0000
commit4a4d4f0d33943c9f50c0d04fbcca2206eaaefcf7 (patch)
tree3a751692608cf09463aef1381fb444a9706877a8 /ace/MEM_SAP.cpp
parentade18e247821c137dd5c1aa93edb74b9b4ee2364 (diff)
downloadATCD-4a4d4f0d33943c9f50c0d04fbcca2206eaaefcf7.tar.gz
ChangeLogTag:Thu Sep 12 17:38:10 2002 Nanbor Wang <nanbor@cs.wustl.edu>
Diffstat (limited to 'ace/MEM_SAP.cpp')
-rw-r--r--ace/MEM_SAP.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/ace/MEM_SAP.cpp b/ace/MEM_SAP.cpp
index 3031578e046..8bf8b02619c 100644
--- a/ace/MEM_SAP.cpp
+++ b/ace/MEM_SAP.cpp
@@ -65,8 +65,10 @@ ACE_MEM_SAP::close_shm_malloc (void)
int retv = -1;
- if (this->shm_malloc_ != 0 && this->shm_malloc_->release () == 0)
- retv = this->shm_malloc_->remove ();
+ if (this->shm_malloc_ != 0)
+ this->shm_malloc_->release (1);
+
+ this->shm_malloc_ = 0;
return retv;
}