Mpegtsmux Memory Leak When Muxing KLV Metadata (meta/x-klv) with H.264 Video

Hi,
It looks to be an issue in the application code. Please refer to the sample:
Latency issue: nvv4l2h265enc accumulates four images before releasing the first - #3 by DaneLLL

You have to call gst_buffer_unref() after gst_buffer_new_allocate().