Plug memory leak.

Found by:	Coverity Prevent
CID:		7056
MFC after:	3 days
This commit is contained in:
pjd 2010-06-14 21:37:25 +00:00
parent d5bb9ec5ff
commit 4d60221630

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