Luca Barbato <[email protected]> writes: > av_opt_free(s); > if (s->iformat && s->iformat->priv_class && s->priv_data) > av_opt_free(s->priv_data);
Does av_opt_free(s) deallocate s? If so, the above is a blatant use after free (which valgrind ought to complain about, if the code is ever executed). Moving first av_opt_free last seems like the right thing to do. Regards, /Niels -- Niels Möller. PGP-encrypted email is preferred. Keyid C0B98E26. Internet email is subject to wholesale government surveillance. _______________________________________________ libav-devel mailing list [email protected] https://lists.libav.org/mailman/listinfo/libav-devel
