ext/mxfinfo/mxfinfo.c in mxfinfo-0.0.6 vs ext/mxfinfo/mxfinfo.c in mxfinfo-0.0.7
- old
+ new
@@ -122,10 +122,10 @@
rb_thread_call_without_gvl(ami_read_info_without_gvl, (void*) ¶ms, NULL, NULL);
if(params.result != 0)
{
- ami_free_info(info);
+ // NOTE: When ami_read_info failed, *info has already been free'd.
switch(params.result)
{
case -2:
rb_raise(rb_eIOError, "Failed to open file.");