diff options
-rw-r--r-- | sbin/hastd/secondary.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/sbin/hastd/secondary.c b/sbin/hastd/secondary.c index 403c5b2..d494dfa 100644 --- a/sbin/hastd/secondary.c +++ b/sbin/hastd/secondary.c @@ -323,6 +323,8 @@ init_remote(struct hast_resource *res, struct nv *nvin) nv_free(nvout); exit(EX_TEMPFAIL); } + if (map != NULL) + free(map); nv_free(nvout); if (res->hr_secondary_localcnt > res->hr_primary_remotecnt && res->hr_primary_localcnt > res->hr_secondary_remotecnt) { |