Author: jhb
Date: Tue Jan 31 19:07:08 2012
New Revision: 230842
URL: http://svn.freebsd.org/changeset/base/230842

Log:
  MFC 226828: Fix a memory leak in tzload().

Modified:
  stable/8/lib/libc/stdtime/localtime.c
Directory Properties:
  stable/8/lib/libc/stdtime/   (props changed)

Modified: stable/8/lib/libc/stdtime/localtime.c
==============================================================================
--- stable/8/lib/libc/stdtime/localtime.c       Tue Jan 31 19:02:33 2012        
(r230841)
+++ stable/8/lib/libc/stdtime/localtime.c       Tue Jan 31 19:07:08 2012        
(r230842)
@@ -457,6 +457,7 @@ register const int  doextend;
                        _close(fid);
                        return -1;
                }
+               free(fullname);
        }
        u = malloc(sizeof(*u));
        if (u == NULL)
_______________________________________________
[email protected] mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "[email protected]"

Reply via email to