svn commit: r209181 - head/sbin/hastd

Pawel Jakub Dawidek pjd at FreeBSD.org
Mon Jun 14 21:37:25 UTC 2010


Author: pjd
Date: Mon Jun 14 21:37:25 2010
New Revision: 209181
URL: http://svn.freebsd.org/changeset/base/209181

Log:
  Plug memory leak.
  
  Found by:	Coverity Prevent
  CID:		7056
  MFC after:	3 days

Modified:
  head/sbin/hastd/primary.c

Modified: head/sbin/hastd/primary.c
==============================================================================
--- head/sbin/hastd/primary.c	Mon Jun 14 21:33:18 2010	(r209180)
+++ head/sbin/hastd/primary.c	Mon Jun 14 21:37:25 2010	(r209181)
@@ -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;
 	/*


More information about the svn-src-head mailing list