summaryrefslogtreecommitdiff
path: root/source4/smb_server/smb/reply.c
diff options
context:
space:
mode:
Diffstat (limited to 'source4/smb_server/smb/reply.c')
-rw-r--r--source4/smb_server/smb/reply.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/source4/smb_server/smb/reply.c b/source4/smb_server/smb/reply.c
index a5665d3525..3c92c6f6a5 100644
--- a/source4/smb_server/smb/reply.c
+++ b/source4/smb_server/smb/reply.c
@@ -1759,7 +1759,7 @@ static void reply_lockingX_send(struct smbsrv_request *req)
/* if it was an oplock break ack then we only send a reply if
there was an error */
if (lck->lockx.in.ulock_cnt + lck->lockx.in.lock_cnt == 0) {
- req_destroy(req);
+ talloc_free(req);
return;
}
@@ -2336,7 +2336,7 @@ void smbsrv_reply_ntcancel(struct smbsrv_request *req)
{
/* NOTE: this request does not generate a reply */
ntvfs_cancel(req);
- req_destroy(req);
+ talloc_free(req);
}
/****************************************************************************
@@ -2452,10 +2452,10 @@ void smbsrv_reply_special(struct smbsrv_request *req)
case SMBkeepalive:
/* session keepalive - swallow it */
- req_destroy(req);
+ talloc_free(req);
return;
}
DEBUG(0,("Unexpected NBT session packet (%d)\n", msg_type));
- req_destroy(req);
+ talloc_free(req);
}