]> git.tuebingen.mpg.de Git - paraslash.git/commit
mood.c: Fix memory leak in change_current_mood().
authorAndre Noll <maan@tuebingen.mpg.de>
Tue, 8 Mar 2022 22:37:08 +0000 (23:37 +0100)
committerAndre Noll <maan@tuebingen.mpg.de>
Sat, 12 Mar 2022 15:47:16 +0000 (16:47 +0100)
commit74ebbb6021658753927e4ff2c206da719dd12032
tree199c73bb484a4aa3447d67bc895f4a68cd967283
parent30e977fe4a01c7c080527f447e3968e524212239
mood.c: Fix memory leak in change_current_mood().

In two error cases we return without freeing the bison mood parser
and the temporary array. Worse, in these cases we also expose the
partially loaded mood via the global current_mood.

The good news is that these errors should be "impossible" to trigger
in practice.
mood.c