diff options
Diffstat (limited to 'epan/dfilter/dfvm.c')
-rw-r--r-- | epan/dfilter/dfvm.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/epan/dfilter/dfvm.c b/epan/dfilter/dfvm.c index cae7336..a0a21b6 100644 --- a/epan/dfilter/dfvm.c +++ b/epan/dfilter/dfvm.c @@ -1428,7 +1428,9 @@ stack_pop(dfilter_t *df, dfvm_value_t *arg1) for (unsigned i = 0; i < count; i++) { /* Free top of stack data. */ - g_ptr_array_unref(df->function_stack->data); + if (df->function_stack->data) { + g_ptr_array_unref(df->function_stack->data); + } /* Remove top of stack. */ df->function_stack = g_slist_delete_link(df->function_stack, df->function_stack); } |