aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/mds-kkbd.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mds-kkbd.c b/src/mds-kkbd.c
index c408f54..18a3e3b 100644
--- a/src/mds-kkbd.c
+++ b/src/mds-kkbd.c
@@ -393,9 +393,9 @@ int master_loop(void)
fail:
if (!rc && reexecing)
return 0;
- mds_message_destroy(&received);
if ((!joined) && (errno = pthread_join(kbd_thread, NULL)))
xperror(*argv);
+ mds_message_destroy(&received);
return rc;
}