Revision: 45610
http://sourceforge.net/p/vice-emu/code/45610
Author: empathicqubit
Date: 2025-03-31 00:33:42 +0000 (Mon, 31 Mar 2025)
Log Message:
-----------
Fix null free in console close in SDL2 when binary monitor disconnects
Modified Paths:
--------------
trunk/vice/src/arch/shared/console_unix.c
Modified: trunk/vice/src/arch/shared/console_unix.c
===================================================================
--- trunk/vice/src/arch/shared/console_unix.c 2025-03-30 20:36:09 UTC (rev 45609)
+++ trunk/vice/src/arch/shared/console_unix.c 2025-03-31 00:33:42 UTC (rev 45610)
@@ -108,8 +108,10 @@
int native_console_close(console_t *log)
{
- lib_free(log->private);
- lib_free(log);
+ if(log != NULL) {
+ lib_free(log->private);
+ lib_free(log);
+ }
linenoiseHistoryFree();
return 0;
}
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|