mirror of
https://github.com/nodemcu/nodemcu-firmware.git
synced 2025-01-30 21:12:55 +08:00
set free'd pointer to NULL
This commit is contained in:
parent
2cfb86b5b5
commit
7ae293d566
@ -1002,7 +1002,10 @@ static int lu8g_close_display( lua_State *L )
|
||||
|
||||
// free up allocated page buffer
|
||||
if (lud->pb.buf != NULL)
|
||||
{
|
||||
c_free( lud->pb.buf );
|
||||
lud->pb.buf = NULL;
|
||||
}
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user