Hi,
There is a leak because the memory management under UEFI doesn't seem to
automatically free buffers of a process started like typically occurs and
parts the LibC expect it to be done. One leak for sure is the time
buffers. I'm not sure about some others like the various file buffer (_p)
in setvbuf(), etc..
To time.h I added:
extern void tzclean(void);
In my __dtor_ for LibC added:
/* free time internal buffers */
tzclean();
In ZoneProc.c I added:
void
tzclean(void)
{
if (lclptr!=NULL) {
free(lclptr);
lclptr=NULL;
}
if (gmtptr!=NULL) {
free(gmtptr);
gmtptr=NULL;
}
}
------------------------------------------------------------------------------
LIMITED TIME SALE - Full Year of Microsoft Training For Just $49.99!
1,500+ hours of tutorials including VisualStudio 2012, Windows 8, SharePoint
2013, SQL 2012, MVC 4, more. BEST VALUE: New Multi-Library Power Pack includes
Mobile, Cloud, Java, and UX Design. Lowest price ever! Ends 9/20/13.
http://pubads.g.doubleclick.net/gampad/clk?id=58041151&iu=/4140/ostg.clktrk
_______________________________________________
edk2-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/edk2-devel