stats: always free log

We always want to free the open file log if fopen() succeeded. Independently
of if fgets() succeeds or fails.

CID 1326055

https://bugzilla.gnome.org/show_bug.cgi?id=756864
This commit is contained in:
Luis de Bethencourt 2015-10-20 13:46:24 +01:00
parent 45f0f354ac
commit 587b95a857

View file

@ -836,10 +836,10 @@ collect_stats (const gchar * filename)
}
}
}
fclose (log);
} else {
GST_WARNING ("empty log");
}
fclose (log);
}
}