Plug memory leak in filter_expression_free

The list_head itself will leak in filter_expression_free(),
so ensure we also free this.

Change-Id: Ide6ef0c013d172b0c0120c744ce4ed46ee4321e0
Reviewed-on: https://code.wireshark.org/review/12837
Reviewed-by: Alexis La Goutte <alexis.lagoutte@gmail.com>
Petri-Dish: Alexis La Goutte <alexis.lagoutte@gmail.com>
Reviewed-by: Stig Bjørlykke <stig@bjorlykke.org>
This commit is contained in:
Stig Bjørlykke 2015-12-23 08:42:53 +01:00
parent 976642ab0a
commit baf3c6f663
1 changed files with 1 additions and 0 deletions

View File

@ -77,6 +77,7 @@ filter_expression_free(struct filter_expression *list_head)
filter_expression_free(list_head->next);
g_free(list_head->label);
g_free(list_head->expression);
g_free(list_head);
}