Fix: consumerd: add missing put_subbuf for ust and kernel errors
[lttng-tools.git] / src / common / ust-consumer / ust-consumer.c
index faf069c0df6f9319a53751a532cc5e88e769ca26..7fbba8a9080f066ed001996c8081a42befa96fcb 100644 (file)
@@ -2496,6 +2496,8 @@ retry:
                index.offset = htobe64(stream->out_fd_offset);
                ret = get_index_values(&index, ustream);
                if (ret < 0) {
+                       err = ustctl_put_subbuf(ustream);
+                       assert(err == 0);
                        goto end;
                }
 
@@ -2503,6 +2505,8 @@ retry:
                ret = update_stream_stats(stream);
                if (ret < 0) {
                        PERROR("kernctl_get_events_discarded");
+                       err = ustctl_put_subbuf(ustream);
+                       assert(err == 0);
                        goto end;
                }
        } else {
This page took 0.023953 seconds and 4 git commands to generate.