summaryrefslogtreecommitdiffstats
path: root/src/H5FDstream.c
diff options
context:
space:
mode:
authorThomas Radke <tradke@aei.mpg.de>2002-03-11 12:48:21 (GMT)
committerThomas Radke <tradke@aei.mpg.de>2002-03-11 12:48:21 (GMT)
commit6eea626ef09a0f6948f4ddcbd3738239391155aa (patch)
tree4e0cb9d3b9b559c3785f2a7fc6a61fa325996c84 /src/H5FDstream.c
parent235aa17446e11b06f8a3737360d3cd0cf87d16b7 (diff)
downloadhdf5-6eea626ef09a0f6948f4ddcbd3738239391155aa.zip
hdf5-6eea626ef09a0f6948f4ddcbd3738239391155aa.tar.gz
hdf5-6eea626ef09a0f6948f4ddcbd3738239391155aa.tar.bz2
[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
Diffstat (limited to 'src/H5FDstream.c')
-rw-r--r--src/H5FDstream.c2
1 files changed, 1 insertions, 1 deletions
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);
}