Plug memory leak.

Found by:	Coverity Prevent
CID:		7056
MFC after:	3 days
This commit is contained in:
Pawel Jakub Dawidek 2010-06-14 21:37:25 +00:00
parent 9f31eddba0
commit b0dfbe5b27
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=209181

View File

@ -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;
/*