PrachiSGandhi at Eaton.com
2011-Oct-05 06:35 UTC
[Nut-upsdev] Replace memory allocation functions malloc(), calloc(), realloc() with xmalloc(), xcalloc() and xrealloc()
Hello, In many driver files, nut-scanner files and parseconf.c file, memory allocation functions malloc(), calloc() and realloc() is used. Can we replace those calls with xmalloc(), xcalloc() and xrealloc() so that it will report and log error if it occurs during memory allocation? Attached file shows listing of files where malloc, calloc and realloc function calls are used. Thanks & Regards, Prachi Gandhi Eaton India Engineering Center (EIEC) Kharadi, Pune. Tel : 91-20-6633 7432 email: PrachiSGandhi at Eaton.com URL: www.eaton.com <file:///C:/Documents%20and%20Settings/e5251237/Application%20Data/Micro soft/Signatures/www.eaton.com> -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.alioth.debian.org/pipermail/nut-upsdev/attachments/20111005/f48ba473/attachment.html> -------------- next part -------------- An embedded and charset-unspecified text was scrubbed... Name: trunk_memory.txt URL: <http://lists.alioth.debian.org/pipermail/nut-upsdev/attachments/20111005/f48ba473/attachment.txt>