Fix memleak when open encoder failed
Fix #75
Merge request reports
Activity
Filter activity
I think this should be enough:
CHECKED_PARAM_STRDUP()
callsx264_param_strdup()
which adds the allocated string pointer toparam->opaque
, interpreted as astrdup_buffer
. So all strings there were allocated (and not literals, for instance) are free'd when you callx264_param_cleanup()
.I've tested this with valgrind, and it seems to solve the leak.
Please register or sign in to reply