mirror of
https://github.com/libretro/RetroArch
synced 2025-02-07 03:40:24 +00:00
(Netplay) Fix memory leak - pointed out by Cthulhu88
This commit is contained in:
parent
9883f11e10
commit
8dcbd61eeb
@ -4951,7 +4951,8 @@ bool command_event(enum event_command cmd, void *data)
|
||||
/* This way we free netplay_server
|
||||
as well when done. */
|
||||
free(p_rarch->connect_host);
|
||||
p_rarch->connect_host = strdup(netplay_server);
|
||||
|
||||
p_rarch->connect_host = netplay_server;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user