svn commit: samba r5665 - in branches/SAMBA_4_0/source/lib/ldb/common: .

tridge at samba.org tridge at samba.org
Sat Mar 5 21:59:48 GMT 2005


Author: tridge
Date: 2005-03-05 21:59:48 +0000 (Sat, 05 Mar 2005)
New Revision: 5665

WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=rev&root=samba&rev=5665

Log:
the data within el2->values can still be used at this point, so don't free

Modified:
   branches/SAMBA_4_0/source/lib/ldb/common/ldb_msg.c


Changeset:
Modified: branches/SAMBA_4_0/source/lib/ldb/common/ldb_msg.c
===================================================================
--- branches/SAMBA_4_0/source/lib/ldb/common/ldb_msg.c	2005-03-05 21:59:02 UTC (rev 5664)
+++ branches/SAMBA_4_0/source/lib/ldb/common/ldb_msg.c	2005-03-05 21:59:48 UTC (rev 5665)
@@ -445,7 +445,6 @@
 			       sizeof(struct ldb_val) * el2->num_values);
 			el1->num_values += el2->num_values;
 			talloc_free(el2->name);
-			talloc_free(el2->values);
 			if (i+1<msg2->num_elements) {
 				memmove(el2, el2+1, sizeof(struct ldb_message_element) * 
 					(msg2->num_elements - (i+1)));



More information about the samba-cvs mailing list