#44996: generate_packets.py: locally allocate pre-send packet copy Open Date: 2022-07-03 19:29 Last Update: 2022-07-05 11:41 URL for this Ticket: https://osdn.net//projects/freeciv/ticket/44996 RSS feed for this Ticket: https://osdn.net/ticket/ticket_rss.php?group_id=12505&tid=44996 --------------------------------------------------------------------- Last Changes/Comment on this Ticket: 2022-07-05 11:41 Updated by: alienvalkyrie * Status Update from Open to Closed * Resolution Update from Accepted to Fixed --------------------------------------------------------------------- Ticket Status: Reporter: alienvalkyrie Owner: alienvalkyrie Type: Bugs Status: Closed Priority: 5 - Medium MileStone: 3.2.0 Component: Bootstrap Severity: 5 - Medium Resolution: Fixed --------------------------------------------------------------------- Ticket details: Split from #44993. For packets with a pre-send hook, an extra packet copy is allocated (on the heap), so that the pre-send hook can modify it without changing the original packet passed in from outside. This packet should instead be declared locally, to avoid issues with freeing the allocated memory. -- Ticket information of Freeciv project Freeciv Project is hosted on OSDN Project URL: https://osdn.net/projects/freeciv/ OSDN: https://osdn.net URL for this Ticket: https://osdn.net/projects/freeciv/ticket/44996 RSS feed for this Ticket: https://osdn.net/ticket/ticket_rss.php?group_id=12505&tid=44996