1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-12-04 09:09:56 +00:00

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