ctdb: Fixing possible memory leak in ctdb_tcp_read_cb
authorSwen Schillig <swen@vnet.ibm.com>
Tue, 13 Mar 2018 08:34:52 +0000 (09:34 +0100)
committerJeremy Allison <jra@samba.org>
Fri, 30 Mar 2018 22:07:18 +0000 (00:07 +0200)
commitaba3d508028567ccbfe8ea986d8f2b3f48af6215
tree72f804e8e1a801febfdda4d08f43c4e1e497ae58
parent611c9a0ba9472aae17a3099da20ea2d836cef84a
ctdb: Fixing possible memory leak in ctdb_tcp_read_cb

In case of an error condition the further processing of the data is cancelled
and the callback returns. In such a scenario the data has to be free'd.

Signed-off-by: Swen Schillig <swen@vnet.ibm.com>
Reviewed-by: Martin Schwenke <martin@meltin.net>
Reviewed-by: Jeremy Allison <jra@samba.org>
ctdb/tcp/tcp_io.c