diff --git a/tests/lv2ftpd.c b/tests/lv2ftpd.c index 49df47c..183ce89 100644 --- a/tests/lv2ftpd.c +++ b/tests/lv2ftpd.c @@ -322,8 +322,8 @@ static int __dir_close(void *m, sexp_t *sx) pthread_rwlock_wrlock(&_lock); item = usrtc_node_getdata(node); closedir(item->dp); - FREE(item); usrtc_delete(_rd_streams, node); + FREE(item); pthread_rwlock_unlock(&_lock); #ifdef DEBUG