ucimap: free memory allocated for fixups
authorFelix Fietkau <nbd@openwrt.org>
Sat, 29 Aug 2009 16:35:54 +0000 (18:35 +0200)
committerFelix Fietkau <nbd@openwrt.org>
Sat, 29 Aug 2009 16:35:54 +0000 (18:35 +0200)
ucimap.c

index c347b24..c2d78f0 100644 (file)
--- a/ucimap.c
+++ b/ucimap.c
@@ -509,6 +509,7 @@ ucimap_parse(struct uci_map *map, struct uci_package *pkg)
                        list->item[list->n_items++].section = ptr;
                        break;
                }
+               free(f);
        }
        list_for_each_safe(p, tmp, &map->sdata) {
                struct uci_sectmap_data *sd = list_entry(p, struct uci_sectmap_data, list);