ctdb-client: Client code should never free the client context
authorAmitay Isaacs <amitay@gmail.com>
Thu, 8 Mar 2018 00:35:55 +0000 (11:35 +1100)
committerKarolin Seeger <kseeger@samba.org>
Fri, 6 Apr 2018 06:21:13 +0000 (08:21 +0200)
This should never have been done.

Signed-off-by: Amitay Isaacs <amitay@gmail.com>
Reviewed-by: Martin Schwenke <martin@meltin.net>
(cherry picked from commit 376e9794e2d19e8d17b0bdde36ce8a1a205986c6)

ctdb/client/client_connect.c

index 89a602d4030b43e74f3fe35234719cc79659541b..1e4157e94ffe8a58a38bd8e68ed55ed25ab845d5 100644 (file)
@@ -297,7 +297,6 @@ static void client_dead_handler(void *private_data)
        ctdb_client_callback_func_t callback = client->callback;
        void *callback_data = client->private_data;
 
-       talloc_free(client);
        if (callback != NULL) {
                callback(callback_data);
                return;