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. */
_______________________________________________
svn-src-head@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-head
To unsubscribe, send any mail to "svn-src-head-unsubscr...@freebsd.org"

Reply via email to