Menu

#51 Reading from released memory

open
nobody
None
5
2012-10-23
2012-04-11
No

Library: What32
Module: ...contrib\what32\source_wincdlg.c
Function: _GetOpenFileName()

Original code:
// ofn.lpstrFile = szFileName;
// ...
hb_xfree( szFileName );
hb_retc( ( char * ) ofn.lpstrFile );

Should be:
hb_retc( ( char * ) ofn.lpstrFile );
hb_xfree( szFileName );

See more:
http://www.digipedia.pl/usenet/thread/4/571233/

Discussion


Log in to post a comment.

MongoDB Logo MongoDB