Fix: UST per-UID channels persist across application teardown
authorMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Tue, 2 Jul 2013 20:20:33 +0000 (16:20 -0400)
committerDavid Goulet <dgoulet@efficios.com>
Thu, 4 Jul 2013 15:54:23 +0000 (11:54 -0400)
Fixes #582

Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
src/bin/lttng-sessiond/ust-app.c

index eea0d8c03aee26a1e8376ba18b94a6f537d632ec..4dcaf4ffb71be6e1e8203947b35b3565663282cf 100644 (file)
@@ -377,10 +377,12 @@ void delete_ust_app_channel(int sock, struct ust_app_channel *ua_chan,
                delete_ust_app_event(sock, ua_event);
        }
 
-       /* Wipe and free registry from session registry. */
-       registry = get_session_registry(ua_chan->session);
-       if (registry) {
-               ust_registry_channel_del_free(registry, ua_chan->key);
+       if (ua_chan->session->buffer_type == LTTNG_BUFFER_PER_PID) {
+               /* Wipe and free registry from session registry. */
+               registry = get_session_registry(ua_chan->session);
+               if (registry) {
+                       ust_registry_channel_del_free(registry, ua_chan->key);
+               }
        }
 
        if (ua_chan->obj != NULL) {
This page took 0.107412 seconds and 4 git commands to generate.