Skip to content

Commit

Permalink
libhb: fix crash in hb_filter_info_close
Browse files Browse the repository at this point in the history
filter info can be null, which caused a crash
  • Loading branch information
jstebbins committed Jan 24, 2016
1 parent 8f5ffbe commit 554e833
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion libhb/common.c
Expand Up @@ -3826,7 +3826,10 @@ void hb_filter_info_close( hb_filter_info_t ** _fi )
{
hb_filter_info_t * fi = *_fi;

free(fi->human_readable_desc);
if (fi != NULL)
{
free(fi->human_readable_desc);
}

free( fi );
*_fi = NULL;
Expand Down

0 comments on commit 554e833

Please sign in to comment.