domain: fix memory leak on domain reload (related to domain_attr table, struct domain...
authorHenning Westerholt <hw@skalatan.de>
Sun, 4 Aug 2019 19:12:48 +0000 (21:12 +0200)
committerHenning Westerholt <hw@skalatan.de>
Sun, 4 Aug 2019 19:12:48 +0000 (21:12 +0200)
- fix memory leak on domain reload, reported by Mack Hendricks
- related to domain_attr table, structure domain_list

src/modules/domain/hash.c

index 257d374..b093dbc 100644 (file)
@@ -204,6 +204,7 @@ void hash_table_free(struct domain_list **hash_table)
                        shm_free(ap);
                        ap = next_ap;
                }
+               shm_free(np);
                np = np->next;
        }