[Subject Prev][Subject Next][Thread Prev][Thread Next][Subject Index][Thread Index]

RE: Leak Return



hello harpreet,
essentially this looks like a memory leak problem.
mem_leak : you are allocaitn mempory (dynamically from the heap) but npot
returning it to the OS
Also, you could be returning deallocated memory or non-heap memory from a
function.
please post relevant code.

shourya

#-----Original Message-----
#From: Harpreet Singh (RBIN/DCA-NMP) 
#[mailto:Harpreet.Singh@xxxxxxxxxxxx]
#Sent: Friday, October 27, 2000 6:45 PM
#To: linux-india-programmers@xxxxxxxxxxxxxxxxxxxxx
#Subject: [LIP] Leak Return
#
#
#Hi,
#
#I am creating a associative array (using MAP)
#and inserting a couple of entries (about 500)
#
#Throughout the insert procedure is successful.
#
#But when I compile the code using a code coverage tool (insure++), 
#I get a LEAK_RETURN warning at this statement during execution.
#
#(But I am getting the desired result)
#
#So my questions are :
#
#1) What is a leak return ?
#2) How can I avoid it ?
#
#Regards,
#Harpreet
#
#---------------------------------------------
#Find out more about this and other Linux India
#mailing lists at http://lists.linux-india.org/
#