Plug memory leak.

MFC after:	3 days
This commit is contained in:
Pawel Jakub Dawidek 2010-10-24 15:42:16 +00:00
parent 584a9bc3f8
commit d7be7905ae
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=214275

View File

@ -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) {