Plug memory leak.
Found by: Coverity Prevent CID: 7056 MFC after: 3 days
This commit is contained in:
parent
d5bb9ec5ff
commit
4d60221630
@ -447,6 +447,7 @@ init_local(struct hast_resource *res)
|
||||
primary_exit(EX_NOINPUT, "Unable to read activemap");
|
||||
}
|
||||
activemap_copyin(res->hr_amp, buf, mapsize);
|
||||
free(buf);
|
||||
if (res->hr_resuid != 0)
|
||||
return;
|
||||
/*
|
||||
|
Loading…
x
Reference in New Issue
Block a user