Memory leak in JetPack 4.6.4 when repeating the start/stop cycle of a GStreamer pipeline including nvv4l2h265 encoder

Hi,
Beside the fix, there is a patch for nvidconv on Jetpack 5. Please apply it:

diff --git a/gst-nvvidconv-1.0/gstnvvconv.c b/gst-nvvidconv-1.0/gstnvvconv.c
index 62f4dbd..6478aff 100644
--- a/gst-nvvidconv-1.0/gstnvvconv.c
+++ b/gst-nvvidconv-1.0/gstnvvconv.c
@@ -2591,10 +2591,12 @@
     tmp1 = tmp2;
   }
 
-  if (gst_caps_is_empty(tmp1))
+  if (gst_caps_is_empty(tmp1)) {
     ret = gst_caps_copy(filter);
-  else
+    gst_caps_unref (tmp1);
+  } else {
     ret = tmp1;
+  }
 
   if (!filter) {
     GstStructure *str;