lavf/libssh: set freed pointers to NULL