]> git.tue.mpg.de Git - paraslash.git/commitdiff
afs: Free current mood or playlist on exit.
authorAndre Noll <maan@tuebingen.mpg.de>
Wed, 3 Jan 2018 00:07:45 +0000 (01:07 +0100)
committerAndre Noll <maan@tuebingen.mpg.de>
Tue, 13 Mar 2018 02:28:57 +0000 (03:28 +0100)
Another harmless memory leak in the afs process which only occurs
on exit.

afs.c

diff --git a/afs.c b/afs.c
index e82e7726363216a99a5630b47a0e9ef66d784bb3..bad8b8dcf94a2078e764720f415790a64a260680 100644 (file)
--- a/afs.c
+++ b/afs.c
@@ -1009,6 +1009,7 @@ out_close:
 out:
        signal_shutdown(signal_task);
        free_status_items();
+       free(current_mop);
        free_lpr();
        if (ret < 0)
                PARA_EMERG_LOG("%s\n", para_strerror(-ret));