diff options
Diffstat (limited to 'networking/nameif.c')
-rw-r--r-- | networking/nameif.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/networking/nameif.c b/networking/nameif.c index f28e5eb..8590a98 100644 --- a/networking/nameif.c +++ b/networking/nameif.c @@ -184,11 +184,11 @@ int nameif_main(int argc, char **argv) } if (ch->next != NULL) (ch->next)->prev = ch->prev; -#ifdef CONFIG_FEATURE_CLEAN_UP - free(ch->ifname); - free(ch->mac); - free(ch); -#endif + if (ENABLE_FEATURE_CLEAN_UP) { + free(ch->ifname); + free(ch->mac); + free(ch); + } } return 0; |