[Mobies-commit] [commit] r3804 - GReAT/trunk/Tools/CodeGenerator/CG_interpreter
ksmyth at redhat1.isis.vanderbilt.edu
ksmyth at redhat1.isis.vanderbilt.edu
Thu Jul 28 14:18:53 CDT 2011
Author: ksmyth
Date: Thu Jul 28 14:18:53 2011
New Revision: 3804
Log:
Manage lifetime
Modified:
GReAT/trunk/Tools/CodeGenerator/CG_interpreter/UdmApp.cpp
Modified: GReAT/trunk/Tools/CodeGenerator/CG_interpreter/UdmApp.cpp
==============================================================================
--- GReAT/trunk/Tools/CodeGenerator/CG_interpreter/UdmApp.cpp Thu Jul 28 10:17:08 2011 (r3803)
+++ GReAT/trunk/Tools/CodeGenerator/CG_interpreter/UdmApp.cpp Thu Jul 28 14:18:53 2011 (r3804)
@@ -147,6 +147,7 @@
NULL, le, 0, (LPTSTR) &lpMsgBuf, 0, NULL );
string msg = "CG Error: Unable to create directory " + CodeGenDir + "\n";
msg += (LPCSTR)lpMsgBuf;
+ LocalFree(lpMsgBuf);
throw udm_exception(msg.c_str());
}
}
More information about the Mobies-commit
mailing list