diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/map.c | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -721,6 +721,11 @@ map_data_unset_map(struct plugin_state *state, } } } + /* And if we're down to no domains, free the domain list, too. */ + if (map_data.n_domains == 0) { + free(map_data.domains); + map_data.domains = NULL; + } } /* Add a map structure, adding a domain for it if necessary. */ |