ctdb: Fixing possible memory leak in ctdb_daemon_read_cb
commit22299f9898ddb84db47b5372ca3cd49c3ec4a1f5
authorSwen Schillig <swen@vnet.ibm.com>
Tue, 13 Mar 2018 08:06:45 +0000 (13 09:06 +0100)
committerJeremy Allison <jra@samba.org>
Fri, 30 Mar 2018 22:07:18 +0000 (31 00:07 +0200)
tree313f79c6eeae621f87a7e735770c9dd89aedcfcf
parent3ffc91813722c71f2dc4e6f3a8b3b4a2afc2e70b
ctdb: Fixing possible memory leak in ctdb_daemon_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/server/ctdb_daemon.c