Fix: free viewer session in connection_free()
authorDavid Goulet <dgoulet@efficios.com>
Wed, 5 Feb 2014 21:37:46 +0000 (16:37 -0500)
committerDavid Goulet <dgoulet@efficios.com>
Tue, 11 Feb 2014 19:58:46 +0000 (14:58 -0500)
Signed-off-by: David Goulet <dgoulet@efficios.com>
src/bin/lttng-relayd/connection.c

index 28d0cb311e3541fa552d1b224edb9c1acf3acf01..f8315449a31052264847a608a5ef1a399c4ddf12 100644 (file)
@@ -28,8 +28,7 @@ static void rcu_free_connection(struct rcu_head *head)
                caa_container_of(head, struct relay_connection, rcu_node);
 
        lttcomm_destroy_sock(conn->sock);
-       free(conn->viewer_session);
-       free(conn);
+       connection_free(conn);
 }
 
 struct relay_connection *connection_find_by_sock(struct lttng_ht *ht, int sock)
@@ -108,5 +107,6 @@ void connection_free(struct relay_connection *conn)
 {
        assert(conn);
 
+       free(conn->viewer_session);
        free(conn);
 }
This page took 0.025095 seconds and 4 git commands to generate.