summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorErmal Luçi <eri@pfsense.org>2010-03-09 17:22:51 +0000
committerErmal Luçi <eri@pfsense.org>2010-03-09 17:22:51 +0000
commitf2f0a748196bed561c2f89d3b2a454e6bbff79d6 (patch)
tree557a46e4590293908abcdfb59c45354a5a4caa93
parentbe934aaddbed552b38f02b997370fd10abb6ec81 (diff)
downloadpfsense-f2f0a748196bed561c2f89d3b2a454e6bbff79d6.zip
pfsense-f2f0a748196bed561c2f89d3b2a454e6bbff79d6.tar.gz
Return the data after unreference, it might be needed.
-rw-r--r--etc/inc/util.inc2
1 files changed, 2 insertions, 0 deletions
diff --git a/etc/inc/util.inc b/etc/inc/util.inc
index ca06a2b..9bae752 100644
--- a/etc/inc/util.inc
+++ b/etc/inc/util.inc
@@ -169,6 +169,8 @@ function refcount_unreference($reference) {
} else
shmop_write($shmid, $shm_data, 0);
shmop_close($shmid);
+
+ return $shm_data;
}
function is_module_loaded($module_name) {
OpenPOWER on IntegriCloud