Plug memory leak.
Found by: Coverity Prevent CID: 7057 MFC after: 3 days
This commit is contained in:
parent
b0dfbe5b27
commit
7a716e072e
@ -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. */
|
||||
|
Loading…
x
Reference in New Issue
Block a user