summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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;