JSON protocol: fix field_addr memory leak.
commit336fb2aa47cf50a5ef0de41c12665580316dd2c1
authorsveinung <sveinung@a0f10bec-cc02-0410-94fc-a9cfff90b4cd>
Wed, 10 May 2017 08:14:32 +0000 (10 08:14 +0000)
committersveinung <sveinung@a0f10bec-cc02-0410-94fc-a9cfff90b4cd>
Wed, 10 May 2017 08:14:32 +0000 (10 08:14 +0000)
treecf289492aa6aff7d395dda3cb679571e976425cd
parent5972d12f8800964f8c7d31a19cedbe21d21fae81
JSON protocol: fix field_addr memory leak.

Don't leak the memory where a packet's field address is stored.

Found with Valgrind.
Reported by Andreas Røsdal

See hrm Bug #658389

git-svn-id: svn://svn.gna.org/svn/freeciv/trunk@35472 a0f10bec-cc02-0410-94fc-a9cfff90b4cd
common/generate_packets.py
common/networking/dataio_json.c
common/networking/packets_json.h