]> git.pond.sub.org Git - empserver/commit
navigate march: Plug memory leaks
authorMarkus Armbruster <armbru@pond.sub.org>
Sun, 20 Sep 2015 13:24:22 +0000 (15:24 +0200)
committerMarkus Armbruster <armbru@pond.sub.org>
Sat, 5 Dec 2015 11:51:07 +0000 (12:51 +0100)
commit1abd3c5b0bfe93d7a21113f3dad070512ee119c6
tree6aa1ea56446a1e39630cce06f9c37838fa145e52
parent25c7d3798bfe568c503929d2fc39da0c4f35da52
navigate march: Plug memory leaks

When the player aborts the command at the movement prompt, or declines
to abandon a sector, unit_move() returns without freeing the list.
Found with valgrind.  Broken in commit 24000b4 and commit 7c1b166,
both v4.3.33.

Free the list on these returns, too.

Signed-off-by: Markus Armbruster <armbru@pond.sub.org>
src/lib/subs/unitsub.c
tests/navi-march/journal.log