smbd: Fix a small leak on talloc_tos()
authorVolker Lendecke <vl@samba.org>
Fri, 9 Jan 2015 14:47:18 +0000 (15:47 +0100)
committerRalph Böhme <slow@samba.org>
Sun, 11 Jan 2015 19:34:56 +0000 (20:34 +0100)
Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Ralph Boehme <slow@samba.org>
Autobuild-User(master): Ralph Böhme <slow@samba.org>
Autobuild-Date(master): Sun Jan 11 20:34:56 CET 2015 on sn-devel-104

source3/locking/leases_db.c

index eceecd816b08304268ed499999cbe01c6a209b03..2ee6a2643bf985f3bb0d8b6ec4f55fa78e043a71 100644 (file)
@@ -283,7 +283,7 @@ NTSTATUS leases_db_del(const struct GUID *client_guid,
        } else {
                DEBUG(10, ("%s: updating record\n", __func__));
                ndr_err = ndr_push_struct_blob(
-                       &blob, talloc_tos(), value,
+                       &blob, rec, value,
                        (ndr_push_flags_fn_t)ndr_push_leases_db_value);
                if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
                        DEBUG(10, ("%s: ndr_push_struct_blob_failed: %s\n",