Cleanup: packet-context-field.c: logically dead code
[babeltrace.git] / src / lib / trace-ir / packet-context-field.c
index 9f648e24a221404caa37ed9dc70b745063841a70..786cbdf6a76aa24b12f8a93a39abf11d3a28d30b 100644 (file)
@@ -76,18 +76,11 @@ struct bt_packet_context_field *bt_packet_context_field_create(
                BT_LIB_LOGE_APPEND_CAUSE(
                        "Cannot allocate one packet context field from stream class: "
                        "%![sc-]+S", stream_class);
-               goto error;
+               goto end;
        }
 
        BT_ASSERT(field_wrapper->field);
        bt_stream_class_freeze(stream_class);
-       goto end;
-
-error:
-       if (field_wrapper) {
-               bt_field_wrapper_destroy(field_wrapper);
-               field_wrapper = NULL;
-       }
 
 end:
        return (void *) field_wrapper;
This page took 0.02259 seconds and 4 git commands to generate.