When save image with the method 'get_convertted_mat' in gst-plugins/gst-dsexample, but the memory is always consuming

Please provide complete information as applicable to your setup.

• Hardware Platform (Jetson / GPU) Jetson
• DeepStream Version 5
• JetPack Version (valid for Jetson only) 4.4
• TensorRT Version 7.1.3
• NVIDIA GPU Driver Version (valid for GPU only)
• Issue Type( questions, new requirements, bugs)
• How to reproduce the issue ? (This is for bugs. Including which sample app is using, the configuration files content, the command line used and other details for reproducing)
• Requirement details( This is for new requirement. Including the module name-for which plugin or for which sample application, the function description)

Are you using the latest deepstream 5.1?

No. The version of deepstream which I use is 5.0.

Can you upgrade to deepstream 5.1 which we have fixed some memory leak issue?

OK.Thanks for your reply.