Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 14 Jun 2010 21:37:25 +0000 (UTC)
From:      Pawel Jakub Dawidek <pjd@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r209181 - head/sbin/hastd
Message-ID:  <201006142137.o5ELbPlB077730@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
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;
 	/*



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201006142137.o5ELbPlB077730>