ctdbd_conn: possible memleak in ctdbd_db_attach
commit2bdb5a75788936e75c31235f4855e7096b9af68c
authorSwen Schillig <swen@linux.ibm.com>
Mon, 30 Mar 2020 10:34:12 +0000 (30 12:34 +0200)
committerMartin Schwenke <martins@samba.org>
Thu, 2 Apr 2020 09:51:39 +0000 (2 09:51 +0000)
tree846748e536650cc56f28994c39ca9851ae24fa83
parent95fc8bd44a2ba942a6052fe8abaf6a4dceca8b3d
ctdbd_conn: possible memleak in ctdbd_db_attach

A cstatus != 0 or a data.dsize != sizeof(uint32_t)
does not guarantee to have no received data referenced by data.dptr.
Therefore, make sure data.dptr is free'd.

Signed-off-by: Swen Schillig <swen@linux.ibm.com>
Reviewed-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Martin Schwenke <martin@meltin.net>
source3/lib/ctdbd_conn.c