summaryrefslogtreecommitdiff
path: root/source4/smb_server/smb/request.c
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2006-03-06 15:38:07 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 13:52:19 -0500
commit0533fed85adefc9aa74b6d5ae6b4293fb9c11d6a (patch)
tree8ed63337a6763ae1f40d4a6fc73e29dfd20649c6 /source4/smb_server/smb/request.c
parentf6457b3d5408d5afe9a4de96d7623f1aa9ec39c4 (diff)
downloadsamba-0533fed85adefc9aa74b6d5ae6b4293fb9c11d6a.tar.gz
samba-0533fed85adefc9aa74b6d5ae6b4293fb9c11d6a.tar.bz2
samba-0533fed85adefc9aa74b6d5ae6b4293fb9c11d6a.zip
r13868: remove useless talloc_free() wrapper
metze (This used to be commit bd3162e6a7f154630c2d88be70ce19e8dd977133)
Diffstat (limited to 'source4/smb_server/smb/request.c')
-rw-r--r--source4/smb_server/smb/request.c10
1 files changed, 1 insertions, 9 deletions
diff --git a/source4/smb_server/smb/request.c b/source4/smb_server/smb/request.c
index eb56c9ba17..f8b58fefab 100644
--- a/source4/smb_server/smb/request.c
+++ b/source4/smb_server/smb/request.c
@@ -32,14 +32,6 @@
/* we over allocate the data buffer to prevent too many realloc calls */
#define REQ_OVER_ALLOCATION 0
-/* destroy a request structure */
-void req_destroy(struct smbsrv_request *req)
-{
- /* ahh, its so nice to destroy a complex structure in such a
- * simple way! */
- talloc_free(req);
-}
-
/****************************************************************************
construct a basic request packet, mostly used to construct async packets
such as change notify and oplock break requests
@@ -304,7 +296,7 @@ void req_send_reply_nosign(struct smbsrv_request *req)
if (!NT_STATUS_IS_OK(status)) {
smbsrv_terminate_connection(req->smb_conn, nt_errstr(status));
}
- req_destroy(req);
+ talloc_free(req);
}
/*