Plug memory leak.
Found by: Coverity Prevent CID: 7056 MFC after: 3 days
This commit is contained in:
parent
9f31eddba0
commit
b0dfbe5b27
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=209181
@ -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…
Reference in New Issue
Block a user