Plug memory leak.

Found by:	Coverity Prevent
CID:		7057
MFC after:	3 days
This commit is contained in:
Pawel Jakub Dawidek 2010-06-14 21:41:22 +00:00
parent b0dfbe5b27
commit 7a716e072e

View File

@ -295,6 +295,7 @@ init_remote(struct hast_resource *res, struct nv *nvin)
nv_free(nvout);
exit(EX_TEMPFAIL);
}
nv_free(nvout);
if (res->hr_secondary_localcnt > res->hr_primary_remotecnt &&
res->hr_primary_localcnt > res->hr_secondary_remotecnt) {
/* Exit on split-brain. */