Free(): invalid pointer while using smart record in deepstream python

The code is on the FAQ: test.py.diff and gpointer_bind.diff.

hardware encoder.