summaryrefslogtreecommitdiffstats
path: root/libhb
diff options
context:
space:
mode:
authorJohn Stebbins <[email protected]>2016-01-24 10:51:13 -0700
committerJohn Stebbins <[email protected]>2016-01-24 10:51:13 -0700
commit554e8336455e23b56e0c6dbc18d768aa10fc9d03 (patch)
treeb6de92ff7d8bb49ca0ce2194d7942bdb4371dcc1 /libhb
parent8f5ffbe4e5b73e9433bbbf0ffec932d5eb35d1c0 (diff)
libhb: fix crash in hb_filter_info_close
filter info can be null, which caused a crash
Diffstat (limited to 'libhb')
-rw-r--r--libhb/common.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/libhb/common.c b/libhb/common.c
index 9f7a917de..1b8c0f4b7 100644
--- a/libhb/common.c
+++ b/libhb/common.c
@@ -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;