svn commit: samba r17042 - in branches/SAMBA_3_0_23/source/locking:
.
jra at samba.org
jra at samba.org
Fri Jul 14 23:53:00 GMT 2006
Author: jra
Date: 2006-07-14 23:52:59 +0000 (Fri, 14 Jul 2006)
New Revision: 17042
WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=rev&root=samba&rev=17042
Log:
Fix critical memleak in POSIX locks (only) code.
This needs to be in 3.0.23a.
Jeremy.
Modified:
branches/SAMBA_3_0_23/source/locking/brlock.c
Changeset:
Modified: branches/SAMBA_3_0_23/source/locking/brlock.c
===================================================================
--- branches/SAMBA_3_0_23/source/locking/brlock.c 2006-07-14 23:23:39 UTC (rev 17041)
+++ branches/SAMBA_3_0_23/source/locking/brlock.c 2006-07-14 23:52:59 UTC (rev 17042)
@@ -666,6 +666,7 @@
return NT_STATUS_NO_MEMORY;
}
br_lck->num_locks = count;
+ SAFE_FREE(br_lck->lock_data);
br_lck->lock_data = (void *)tp;
br_lck->modified = True;
return NT_STATUS_OK;
@@ -956,6 +957,7 @@
}
br_lck->num_locks = count;
+ SAFE_FREE(br_lck->lock_data);
br_lck->lock_data = (void *)tp;
br_lck->modified = True;
More information about the samba-cvs
mailing list