diff options
Diffstat (limited to 'source4/rpc_server/dcerpc_tcp.c')
-rw-r--r-- | source4/rpc_server/dcerpc_tcp.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/source4/rpc_server/dcerpc_tcp.c b/source4/rpc_server/dcerpc_tcp.c index ee026b3674..c9aeb400d0 100644 --- a/source4/rpc_server/dcerpc_tcp.c +++ b/source4/rpc_server/dcerpc_tcp.c @@ -100,10 +100,12 @@ static void dcerpc_read_handler(struct event_context *ev, struct fd_event *fde, ret = read(fde->fd, blob.data, blob.length); if (ret == 0 || (ret == -1 && errno != EINTR)) { + data_blob_free(&blob); terminate_rpc_session(r, "eof on socket"); return; } if (ret == -1) { + data_blob_free(&blob); return; } @@ -265,6 +267,8 @@ static void add_socket_rpc(struct event_context *events, r, e->endpoint_ops); } } + + free(r); } /**************************************************************************** |