[Insight-developers] memory leaks in MetaImageIO

Aljaz Noe noe@grasp.cis.upenn.edu
Fri, 8 Nov 2002 13:48:37 -0500


This is a multi-part message in MIME format.

------=_NextPart_000_0003_01C2872D.8BFFCB30
Content-Type: text/plain;
	charset="us-ascii"
Content-Transfer-Encoding: 7bit

Hi!
 
I recently noticed that there are several memory leaks in MetaImageIO
class. To specify some (not all) of them:
 
file Utilities/MetaIO/metaImage.cxx, line 752: temporary created stream
object is never deleted,
file Utilities/MetaIO/metaObject.cxx, lines 633-: a bunch of objects are
created with new, and their pointers are stored in an stl vector, but
never deleted,
...
 
Aljaz
 

------=_NextPart_000_0003_01C2872D.8BFFCB30
Content-Type: text/html;
	charset="us-ascii"
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META HTTP-EQUIV=3D"Content-Type" CONTENT=3D"text/html; =
charset=3Dus-ascii">
<TITLE>Message</TITLE>

<META content=3D"MSHTML 6.00.2800.1106" name=3DGENERATOR></HEAD>
<BODY>
<DIV><SPAN class=3D312112618-08112002><FONT face=3DArial=20
size=3D2>Hi!</FONT></SPAN></DIV>
<DIV><SPAN class=3D312112618-08112002><FONT face=3DArial=20
size=3D2></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class=3D312112618-08112002><FONT face=3DArial size=3D2>I =
recently noticed=20
that there are several memory leaks in MetaImageIO class. To specify =
some (not=20
all) of them:</FONT></SPAN></DIV>
<DIV><SPAN class=3D312112618-08112002><FONT face=3DArial=20
size=3D2></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class=3D312112618-08112002><FONT face=3DArial size=3D2>file=20
Utilities/MetaIO/metaImage.cxx, line 752: temporary created stream =
object is=20
never deleted,</FONT></SPAN></DIV>
<DIV><SPAN class=3D312112618-08112002><FONT face=3DArial size=3D2>file=20
Utilities/MetaIO/metaObject.cxx, lines 633-: a bunch of objects are =
created with=20
new, and their pointers are stored in an stl vector, but never=20
deleted,</FONT></SPAN></DIV>
<DIV><SPAN class=3D312112618-08112002><FONT face=3DArial=20
size=3D2>...</FONT></SPAN></DIV>
<DIV><SPAN class=3D312112618-08112002><FONT face=3DArial=20
size=3D2></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class=3D312112618-08112002><FONT face=3DArial=20
size=3D2>Aljaz</FONT></SPAN></DIV>
<DIV><SPAN class=3D312112618-08112002><FONT face=3DArial=20
size=3D2></FONT></SPAN>&nbsp;</DIV></BODY></HTML>

------=_NextPart_000_0003_01C2872D.8BFFCB30--