Author: abartlet Date: 2007-04-23 07:22:16 +0000 (Mon, 23 Apr 2007) New Revision: 22474
WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=rev&root=samba&rev=22474 Log: If ldb does not return sucess, then the res variable may not be valid. It *should* just be NULL from the initialisation above, but I've had this not be the case... Andrew Bartlett Modified: branches/SAMBA_4_0/source/lib/ldb/common/ldb.c Changeset: Modified: branches/SAMBA_4_0/source/lib/ldb/common/ldb.c =================================================================== --- branches/SAMBA_4_0/source/lib/ldb/common/ldb.c 2007-04-23 06:10:22 UTC (rev 22473) +++ branches/SAMBA_4_0/source/lib/ldb/common/ldb.c 2007-04-23 07:22:16 UTC (rev 22474) @@ -970,8 +970,6 @@ if (ret == LDB_SUCCESS) { talloc_steal(mem_ctx, res); *result = res; - } else { - talloc_free(res); } talloc_free(expression);