Author: pjd
Date: Sun Oct 24 15:42:16 2010
New Revision: 214275
URL: http://svn.freebsd.org/changeset/base/214275

Log:
  Plug memory leak.
  
  MFC after:    3 days

Modified:
  head/sbin/hastd/secondary.c

Modified: head/sbin/hastd/secondary.c
==============================================================================
--- head/sbin/hastd/secondary.c Sun Oct 24 15:41:23 2010        (r214274)
+++ head/sbin/hastd/secondary.c Sun Oct 24 15:42:16 2010        (r214275)
@@ -323,6 +323,8 @@ init_remote(struct hast_resource *res, s
                nv_free(nvout);
                exit(EX_TEMPFAIL);
        }
+       if (map != NULL)
+               free(map);
        nv_free(nvout);
        if (res->hr_secondary_localcnt > res->hr_primary_remotecnt &&
             res->hr_primary_localcnt > res->hr_secondary_remotecnt) {
_______________________________________________
svn-src-all@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"

Reply via email to