Don't free() stack-allocated buffer.
Probably a leftover of use of a Linux extension of getcwd. Currently we use a buffer on the stack and we must not free it. git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@2089 416bcca6-2ee7-4201-b75f-2eb2f807beb1
This commit is contained in:
parent
9c1c219348
commit
02a32b75bb
@ -498,11 +498,6 @@ void Read_list_of_files(T_Fileselector *list, byte selected_format)
|
||||
#endif
|
||||
|
||||
closedir(current_directory);
|
||||
#if defined (__MINT__)
|
||||
|
||||
#else
|
||||
free(current_path);
|
||||
#endif
|
||||
current_path = NULL;
|
||||
|
||||
if (list->Nb_files==0 && list->Nb_directories==0)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user