Plug memory leak.
MFC after: 3 days
This commit is contained in:
parent
584a9bc3f8
commit
d7be7905ae
@ -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) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user