s3:smb2_close: add missing TALLOC_FREE(subreq) in smbd_smb2_request_close_done()
authorStefan Metzmacher <metze@samba.org>
Fri, 8 Jun 2012 08:29:44 +0000 (10:29 +0200)
committerStefan Metzmacher <metze@samba.org>
Sat, 9 Jun 2012 11:57:31 +0000 (13:57 +0200)
metze

Autobuild-User(master): Stefan Metzmacher <metze@samba.org>
Autobuild-Date(master): Sat Jun  9 13:57:31 CEST 2012 on sn-devel-104

source3/smbd/smb2_close.c

index 9a08c6f10f0b60e062ed3da44a19bdf47f237bc3..3df408eadc57f0eb7895f604cab3b7133137e9e1 100644 (file)
@@ -106,6 +106,7 @@ static void smbd_smb2_request_close_done(struct tevent_req *subreq)
                                      &out_allocation_size,
                                      &out_end_of_file,
                                      &out_file_attributes);
+       TALLOC_FREE(subreq);
        if (!NT_STATUS_IS_OK(status)) {
                error = smbd_smb2_request_error(req, status);
                if (!NT_STATUS_IS_OK(error)) {