Possible bug inside libnvfnet.so or nearby

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

It is a known issue and this seems related. Please help give it a try.