Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 16 Jan 2013 05:03:52 +0000 (UTC)
From:      Eitan Adler <eadler@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r245494 - head/bin/pwait
Message-ID:  <201301160503.r0G53qie087155@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: eadler
Date: Wed Jan 16 05:03:52 2013
New Revision: 245494
URL: http://svnweb.freebsd.org/changeset/base/245494

Log:
  Free memory before exiting in order to silence a warning from the clang
  static analyzer
  
  Approved by:	cperciva
  MFC after: 	3 days

Modified:
  head/bin/pwait/pwait.c

Modified: head/bin/pwait/pwait.c
==============================================================================
--- head/bin/pwait/pwait.c	Wed Jan 16 05:03:49 2013	(r245493)
+++ head/bin/pwait/pwait.c	Wed Jan 16 05:03:52 2013	(r245494)
@@ -141,5 +141,6 @@ main(int argc, char *argv[])
 		nleft -= n;
 	}
 
+	free(e);
 	return 0;
 }



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