=== modified file 'demo.c' --- demo.c 2008-02-23 20:07:48 +0000 +++ demo.c 2008-02-23 19:43:05 +0000 @@ -46,6 +46,4 @@ termios.c_lflag = old_lflag; tcsetattr(0, TCSANOW, &termios); - - termkey_free(tk); } === modified file 'termkey.c' --- termkey.c 2008-02-23 20:07:48 +0000 +++ termkey.c 2008-02-23 19:43:05 +0000 @@ -189,15 +189,6 @@ return termkey_new_full(fd, flags, 256, 50); } -void termkey_free(termkey_t *tk) -{ - free(tk->buffer); tk->buffer = NULL; - free(tk->keynames); tk->keynames = NULL; - free(tk->csifuncs); tk->csifuncs = NULL; - - free(tk); -} - void termkey_setwaittime(termkey_t *tk, int msec) { tk->waittime = msec;