Fix trade route memory leak.
commite2e93bc4aa05a9491f597f1caee147e5fbd9f926
authorsveinung <sveinung@a0f10bec-cc02-0410-94fc-a9cfff90b4cd>
Thu, 11 May 2017 06:25:25 +0000 (11 06:25 +0000)
committersveinung <sveinung@a0f10bec-cc02-0410-94fc-a9cfff90b4cd>
Thu, 11 May 2017 06:25:25 +0000 (11 06:25 +0000)
treeab1b03817181fd11313ca1ca46f8e53db43ae77d
parentefae4d152829593fc5669b8e29f0cc2ff7ff6b13
Fix trade route memory leak.

Free the memory of the trade route structs canceled by the destruction of a
city or player.

Reported by Valgrind.

See hrm Bug #658824

git-svn-id: svn://svn.gna.org/svn/freeciv/trunk@35499 a0f10bec-cc02-0410-94fc-a9cfff90b4cd
server/citytools.c
server/plrhand.c