Hi, Please apply this and check again: Memory Leak (Alloc/free mismatch) in Tegra multimedia API (encoder) - #6 by DaneLLL