summaryrefslogtreecommitdiff
path: root/source4
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2005-11-10 14:16:50 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 13:46:07 -0500
commitaecff39aacbc7d033330bb25c5a3a39cb65ea2c0 (patch)
tree310091a3c8959aef6093f4ff89006c586f6881c0 /source4
parent0b6370ea27f22be4af5ac5376331d306d0a69ef1 (diff)
downloadsamba-aecff39aacbc7d033330bb25c5a3a39cb65ea2c0.tar.gz
samba-aecff39aacbc7d033330bb25c5a3a39cb65ea2c0.tar.bz2
samba-aecff39aacbc7d033330bb25c5a3a39cb65ea2c0.zip
r11644: free the buffer when it's not used
metze (This used to be commit 16f2d92618a55188d260cadd144281b325cdacda)
Diffstat (limited to 'source4')
-rw-r--r--source4/libcli/raw/clitransport.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/source4/libcli/raw/clitransport.c b/source4/libcli/raw/clitransport.c
index 1cd706f11e..4fed2ed9a0 100644
--- a/source4/libcli/raw/clitransport.c
+++ b/source4/libcli/raw/clitransport.c
@@ -479,6 +479,8 @@ error:
if (req) {
DLIST_REMOVE(transport->pending_recv, req);
req->state = SMBCLI_REQUEST_ERROR;
+ } else {
+ talloc_free(buffer);
}
return NT_STATUS_OK;
}