Tests: flt.lttng-utils.debug-info: update debug-info tests
[babeltrace.git] / src / plugins / lttng-utils / debug-info / debug-info.c
index 75e1a6fe2b0381ebd5fb8c6903482ff9c58d6da4..75eb0175321d307341e198e059f87310eafa4ac1 100644 (file)
@@ -1913,6 +1913,14 @@ handle_msg_error:
                bt_message_put_ref(msgs[i]);
        }
 
+       /*
+        * Drop references of all the input messages not dropped before the
+        * failure.
+        */
+       for (i = curr_msg_idx; i < *count; i++) {
+               bt_message_put_ref(input_msgs[i]);
+       }
+
        status = BT_COMPONENT_CLASS_MESSAGE_ITERATOR_NEXT_METHOD_STATUS_MEMORY_ERROR;
 
 end:
This page took 0.024748 seconds and 4 git commands to generate.