From: Simo Sorce Date: Mon, 16 Oct 2006 12:33:21 +0000 (+0000) Subject: r19338: leak on error X-Git-Tag: samba-4.0.0alpha6~801^3~4464 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0f2347e417dec4a50f95d64353b260cd53a44a2b;p=thirdparty%2Fsamba.git r19338: leak on error (This used to be commit 326389afed0521133ac07339bd5e2bfbf8d80d0a) --- diff --git a/source4/lib/ldb/ldb_tdb/ldb_tdb.c b/source4/lib/ldb/ldb_tdb/ldb_tdb.c index bd3045d4776..b7a202442d1 100644 --- a/source4/lib/ldb/ldb_tdb/ldb_tdb.c +++ b/source4/lib/ldb/ldb_tdb/ldb_tdb.c @@ -386,6 +386,7 @@ static int ltdb_delete_internal(struct ldb_module *module, const struct ldb_dn * ret = ltdb_modified(module, dn); if (ret != LDB_SUCCESS) { + talloc_free(msg); return LDB_ERR_OPERATIONS_ERROR; }