bugfix: forgotten free when delete pipe