summaryrefslogtreecommitdiffstats
path: root/source/locking/posix.c
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2006-07-14 23:23:39 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 11:19:21 -0500
commit43d24fbd41ed745a5b21514b526e655663c509ee (patch)
tree872ae58fff8846db16e64a32bc58fd04dfc16634 /source/locking/posix.c
parentc5e393d5eda4e13a844171d9ff319d1f1bac3d84 (diff)
downloadsamba-43d24fbd41ed745a5b21514b526e655663c509ee.tar.gz
samba-43d24fbd41ed745a5b21514b526e655663c509ee.tar.xz
samba-43d24fbd41ed745a5b21514b526e655663c509ee.zip
r17041: Trying to track down a *big* memory leak in the new lock code.
Fix a small one first.... (easy to valgrind). Jeremy
Diffstat (limited to 'source/locking/posix.c')
-rw-r--r--source/locking/posix.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/source/locking/posix.c b/source/locking/posix.c
index 9a50f55c097..586de5745be 100644
--- a/source/locking/posix.c
+++ b/source/locking/posix.c
@@ -539,6 +539,7 @@ static int get_windows_lock_ref_count(files_struct *fsp)
} else {
memcpy(&lock_ref_count, dbuf.dptr, sizeof(int));
}
+ SAFE_FREE(dbuf.dptr);
DEBUG(10,("get_windows_lock_count for file %s = %d\n",
fsp->fsp_name, lock_ref_count ));