Author: trociny Date: Thu Oct 27 08:44:07 2011 New Revision: 226828 URL: http://svn.freebsd.org/changeset/base/226828
Log: Fix a memory leak in tzload(). Reported by: valgrind Reviewed by: kib MFC after: 3 days Modified: head/contrib/tzcode/stdtime/localtime.c Modified: head/contrib/tzcode/stdtime/localtime.c ============================================================================== --- head/contrib/tzcode/stdtime/localtime.c Thu Oct 27 07:20:30 2011 (r226827) +++ head/contrib/tzcode/stdtime/localtime.c Thu Oct 27 08:44:07 2011 (r226828) @@ -450,6 +450,7 @@ register const int doextend; _close(fid); return -1; } + free(fullname); } u = malloc(sizeof(*u)); if (u == NULL) _______________________________________________ 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"