Skip to content

Commit

Permalink
Fix calc_activity() memory leak
Browse files Browse the repository at this point in the history
See osdn #44492

Signed-off-by: Marko Lindqvist <cazfi74@gmail.com>
  • Loading branch information
cazfi committed May 17, 2022
1 parent 3ef14d2 commit 81fd57f
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions common/clientutils.c
Expand Up @@ -175,6 +175,8 @@ static void calc_activity(struct actcalc *calc, const struct tile *ptile,
calc->activity_turns[act] = turns;
}
} activity_type_iterate_end;

free(t);
}

/************************************************************************//**
Expand Down

0 comments on commit 81fd57f

Please sign in to comment.