pty: free seat argument on destruction
authorDavid Herrmann <dh.herrmann@googlemail.com>
Sun, 2 Dec 2012 12:40:16 +0000 (13:40 +0100)
committerDavid Herrmann <dh.herrmann@googlemail.com>
Sun, 2 Dec 2012 12:40:16 +0000 (13:40 +0100)
We didn't correctly free this parameter even though we dup'ed it earlier.

Signed-off-by: David Herrmann <dh.herrmann@googlemail.com>
src/pty.c

index 5f75dc6..4ff9d29 100644 (file)
--- a/src/pty.c
+++ b/src/pty.c
@@ -117,6 +117,7 @@ void kmscon_pty_unref(struct kmscon_pty *pty)
 
        log_debug("free pty object");
        kmscon_pty_close(pty);
+       free(pty->seat);
        free(pty->argv);
        free(pty->term);
        shl_ring_free(pty->msgbuf);