diff --git a/network/netplay/netplay_frontend.c b/network/netplay/netplay_frontend.c index b393865a7a..86c8234849 100644 --- a/network/netplay/netplay_frontend.c +++ b/network/netplay/netplay_frontend.c @@ -644,10 +644,16 @@ static void netplay_announce(void) #endif task_push_http_post_transfer(url, buf, true, NULL, netplay_announce_cb, NULL); - free(username); - free(corename); - free(gamename); - free(coreversion); + if (username) + free(username); + if (corename) + free(corename); + if (gamename) + free(gamename); + if (coreversion) + free(coreversion); + if (frontend_ident) + free(frontend_ident); } int16_t input_state_net(unsigned port, unsigned device,