svn commit: r209182 - head/sbin/hastd

Pawel Jakub Dawidek pjd at FreeBSD.org
Mon Jun 14 21:41:22 UTC 2010


Author: pjd
Date: Mon Jun 14 21:41:22 2010
New Revision: 209182
URL: http://svn.freebsd.org/changeset/base/209182

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

Modified:
  head/sbin/hastd/secondary.c

Modified: head/sbin/hastd/secondary.c
==============================================================================
--- head/sbin/hastd/secondary.c	Mon Jun 14 21:37:25 2010	(r209181)
+++ head/sbin/hastd/secondary.c	Mon Jun 14 21:41:22 2010	(r209182)
@@ -295,6 +295,7 @@ init_remote(struct hast_resource *res, s
 		nv_free(nvout);
 		exit(EX_TEMPFAIL);
 	}
+	nv_free(nvout);
 	if (res->hr_secondary_localcnt > res->hr_primary_remotecnt &&
 	     res->hr_primary_localcnt > res->hr_secondary_remotecnt) {
 		/* Exit on split-brain. */


More information about the svn-src-all mailing list