﻿id	summary	reporter	owner	description	type	status	priority	milestone	component	version	resolution	keywords	cc
25	Potential memory leak	abwillis	Andreas Schnellbacher	"I ran cppcheck looking for possible uninitialized variables as I have seen crashes when doing a lot of scrolling.  I did not find any but found a potential memory leak.  I'll let you evaluate and decide if this is meaningful.
{{{
Index: src/gui/nepmdlib/nepmdlib.c
===================================================================
--- src/gui/nepmdlib/nepmdlib.c	(revision 2946)
+++ src/gui/nepmdlib/nepmdlib.c	(working copy)
@@ -1032,7 +1032,7 @@
          HCONFIG        hconfig;
 
          CHAR           szResult[ 20];
-         PMODEINFO      pmi = malloc( 1024);
+         PMODEINFO      pmi = NULL;
 
 FUNCENTER;
 
@@ -1076,6 +1076,8 @@
    } while (FALSE);
 
 FUNCEXITRC;
+if (pmi)
+  free( pmi);
 return _getRexxError( rc, pszBuffer, ulBuflen);
 }
 
}}}
"	defect	closed	major	Unsorted	Other	1.18	fixed		
