Memory leak when Using Nvenc to encode yuv. Can reproduce on AppEncGL in samples

Hi,
My program calls the NVENC API to encode YUV to h264, and when selecting OpenGL as the deviceType, there are memory leaks.
To make it easier for you to reproduce the issue,
I’ve verified that the memory leak also occurs in the AppEncGL from the Video SDK’s Sample. So, I’ll use AppEncGL as an example here.
I ran valgrind and have pasted the results below. Could experts please take a look and see what’s going on? It seems like the memory leak is happening in the underlying driver-related libraries.
You can also reproduce yourself.

[environment]
OS: Ubuntu 24.04.2 LTS
device: [Quadro P2000]
driver: NVIDIA-SMI 570.153.02 Driver Version: 570.153.02 CUDA Version: 12.8
test program: video-codec-sdk/Video_Codec_SDK_13.0.19/Samples/build/AppEncode/AppEncGL

[command with parameters]
./AppEncGL -i 420p.yuv -o ./out.264 -s 1920x1080 -if iyuv -c glx -codec h264 -preset p1 -fps 30 -rc cbr -bitrate 8000000

[valgrind result snippet]
the valgrind report memory leak result(snippet, full log see attachment):

==62529== 1,910 (184 direct, 1,726 indirect) bytes in 1 blocks are definitely lost in loss record 172 of 186
==62529== at 0x484D953: calloc (in /usr/libexec/valgrind/vgpreload_memcheck-amd64-linux.so)
==62529== by 0xEC7FDDF: ??? (in /usr/lib/x86_64-linux-gnu/libdbus-1.so.3.32.4)
==62529== by 0xEC81D6D: _dbus_message_loader_queue_messages (in /usr/lib/x86_64-linux-gnu/libdbus-1.so.3.32.4)
==62529== by 0xEC8A8DB: ??? (in /usr/lib/x86_64-linux-gnu/libdbus-1.so.3.32.4)
==62529== by 0xEC8AAAF: ??? (in /usr/lib/x86_64-linux-gnu/libdbus-1.so.3.32.4)
==62529== by 0xEC8BBE0: ??? (in /usr/lib/x86_64-linux-gnu/libdbus-1.so.3.32.4)
==62529== by 0xEC8C1CF: ??? (in /usr/lib/x86_64-linux-gnu/libdbus-1.so.3.32.4)
==62529== by 0xEC71391: ??? (in /usr/lib/x86_64-linux-gnu/libdbus-1.so.3.32.4)
==62529== by 0xEC8604C: dbus_pending_call_block (in /usr/lib/x86_64-linux-gnu/libdbus-1.so.3.32.4)
==62529== by 0xEC7319D: dbus_connection_send_with_reply_and_block (in /usr/lib/x86_64-linux-gnu/libdbus-1.so.3.32.4)
==62529== by 0xEC7343B: dbus_bus_register (in /usr/lib/x86_64-linux-gnu/libdbus-1.so.3.32.4)
==62529== by 0xEC73707: ??? (in /usr/lib/x86_64-linux-gnu/libdbus-1.so.3.32.4)

==62529== LEAK SUMMARY:
==62529== definitely lost: 184 bytes in 1 blocks ///ATTENTION
==62529== indirectly lost: 1,726 bytes in 2 blocks ///ATTENTION
==62529== possibly lost: 2,368 bytes in 15 blocks ///ATTENTION
==62529== still reachable: 3,419,534 bytes in 262 blocks
==62529== suppressed: 0 bytes in 0 blocks

please help to check why memory lost.

Thanks.

valgrind-videoSDK-AppEncGL.txt (302.8 KB)