]> pilppa.com Git - uci.git/commitdiff
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 c347b24ae69d6605659aa7364487a7d0736a4121..c2d78f0a856db4e6f8b3187861dc0d3436cd9938 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);