From 6eea626ef09a0f6948f4ddcbd3738239391155aa Mon Sep 17 00:00:00 2001 From: Thomas Radke Date: Mon, 11 Mar 2002 07:48:21 -0500 Subject: [svn-r5059] Purpose: Bugfix Description: If the socket, used for data streaming by the Stream driver, was created by the driver itself, it did not close it after the file had been closed. A resource leak occured. Solution: This bug was just introduced due to a logical condition. Fixing the condition solved the problem. Platforms tested: Linux, SGI --- src/H5FDstream.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/H5FDstream.c b/src/H5FDstream.c index 581c0b7..919f360 100644 --- a/src/H5FDstream.c +++ b/src/H5FDstream.c @@ -904,7 +904,7 @@ static herr_t H5FD_stream_close (H5FD_t *_stream) } /* Release resources */ - if (H5FD_STREAM_ERROR_CHECK (stream->socket) && stream->internal_socket) + if (! H5FD_STREAM_ERROR_CHECK (stream->socket) && stream->internal_socket) { H5FD_STREAM_CLOSE_SOCKET (stream->socket); } -- cgit v0.12