diff options
-rw-r--r-- | source4/libcli/raw/clitransport.c | 2 |
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; } |