diff options
-rw-r--r-- | usr.bin/sndiod/listen.c | 6 | ||||
-rw-r--r-- | usr.bin/sndiod/sndiod.c | 4 |
2 files changed, 3 insertions, 7 deletions
diff --git a/usr.bin/sndiod/listen.c b/usr.bin/sndiod/listen.c index 1d6e1ec22b9..1261670a598 100644 --- a/usr.bin/sndiod/listen.c +++ b/usr.bin/sndiod/listen.c @@ -1,4 +1,4 @@ -/* $OpenBSD: listen.c,v 1.5 2015/12/20 11:38:33 ratchov Exp $ */ +/* $OpenBSD: listen.c,v 1.6 2015/12/21 22:03:47 ratchov Exp $ */ /* * Copyright (c) 2008 Alexandre Ratchov <alex@caoua.org> * @@ -70,10 +70,8 @@ listen_close(struct listen *f) } *pf = f->next; - if (f->path != NULL) { - unlink(f->path); + if (f->path != NULL) xfree(f->path); - } file_del(f->file); close(f->fd); xfree(f); diff --git a/usr.bin/sndiod/sndiod.c b/usr.bin/sndiod/sndiod.c index 51eb5cee031..888fbcce98b 100644 --- a/usr.bin/sndiod/sndiod.c +++ b/usr.bin/sndiod/sndiod.c @@ -1,4 +1,4 @@ -/* $OpenBSD: sndiod.c,v 1.18 2015/12/20 11:38:33 ratchov Exp $ */ +/* $OpenBSD: sndiod.c,v 1.19 2015/12/21 22:03:47 ratchov Exp $ */ /* * Copyright (c) 2008-2012 Alexandre Ratchov <alex@caoua.org> * @@ -557,8 +557,6 @@ main(int argc, char **argv) while (file_poll()) ; /* nothing */ midi_done(); - - rmdir(base); } while (opt_list != NULL) opt_del(opt_list); |