diff options
Diffstat (limited to 'web/web_control.c')
-rw-r--r-- | web/web_control.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/web/web_control.c b/web/web_control.c index 07d52b1..7fdec9a 100644 --- a/web/web_control.c +++ b/web/web_control.c @@ -52,8 +52,10 @@ void end_boat_visit(int rem, double avg, int match_id) EMSCRIPTEN_KEEPALIVE void draw_boat_throwing(int pts, char *str, double x, double y, int match_id) { - if (!state || match_id != state->id) + if (!state || match_id != state->id) { + free(str); return; + } char pts_str[10]; sprintf(pts_str, "%d", pts); |