Author: brucec
Date: Sat Mar 13 11:08:57 2010
New Revision: 205118
URL: http://svn.freebsd.org/changeset/base/205118

Log:
  Free the memory allocated via strdup.
  
  PR:           bin/113881
  Submitted by: Alexander Drozdov  dzal_mail mtu-net.ru
  Approved by:  rrs (mentor)
  MFC after:    1 week

Modified:
  head/sbin/sysctl/sysctl.c

Modified: head/sbin/sysctl/sysctl.c
==============================================================================
--- head/sbin/sysctl/sysctl.c   Sat Mar 13 11:06:47 2010        (r205117)
+++ head/sbin/sysctl/sysctl.c   Sat Mar 13 11:08:57 2010        (r205118)
@@ -382,6 +382,7 @@ S_timeval(int l2, void *p)
                if (*p2 == '\n')
                        *p2 = '\0';
        fputs(p1, stdout);
+       free(p1);
        return (0);
 }
 
_______________________________________________
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