[<<] [<] Page 1 of 1 [>] [>>] | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Subject:
Possible free bug in winres.c
From: "Wayne J" ####@####.#### Date: 9 Aug 2007 00:02:41 +0100 Message-Id: <F074A17E662243E2B84A3DF60B0D0969@mobility> I am using code that I pulled out of CVS several weeks to a month ago. The function mwFreeInstance() (winres.c) tries to free a buffer that was not allocated by mwCreateInstance() shouldn't free((void *) ((PMWAPPINSTANCE) hInst)->szExecCommand); really be: free((void *) ((PMWAPPINSTANCE) hInst)->szCmdLine); mwCreateInstance allocates a buffer and stores the pointer in szCmdLine. szExecCommand is a pointer to argv[0] that was passed into the function. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
[<<] [<] Page 1 of 1 [>] [>>] |