aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--plugins/wimaxasncp/wimaxasncp_dict.l4
1 files changed, 2 insertions, 2 deletions
diff --git a/plugins/wimaxasncp/wimaxasncp_dict.l b/plugins/wimaxasncp/wimaxasncp_dict.l
index a1d16b3..7e4db0b 100644
--- a/plugins/wimaxasncp/wimaxasncp_dict.l
+++ b/plugins/wimaxasncp/wimaxasncp_dict.l
@@ -794,7 +794,7 @@ wimaxasncp_dict_t *wimaxasncp_dict_scan(
void wimaxasncp_dict_free(wimaxasncp_dict_t *d) {
wimaxasncp_dict_tlv_t *t, *tn;
-#define FREE_NAMEANDOBJ(n) do { if(n->name) g_free(n->name); g_free(n); } while(0)
+#define FREE_NAMEANDOBJ(n) do { g_free(n->name); g_free(n); } while(0)
for (t = d->tlvs; t; t = tn) {
wimaxasncp_dict_enum_t *e, *en;
@@ -805,7 +805,7 @@ void wimaxasncp_dict_free(wimaxasncp_dict_t *d) {
FREE_NAMEANDOBJ(e);
}
- if (!t->description) g_free(t->description);
+ g_free(t->description);
FREE_NAMEANDOBJ(t);
}