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 e82e772..bad8b8d 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));