Home
News
Download
History
Documentation
Papers
Bugs
Contact |
Description |
Status |
Memory leak in QUANTAnet_remoteFileIO32::process()
function |
Patch available |
Memory leak in QUANTAdb_client_c::blockingFetch() |
Fixed (v0,2) |
Busy wait of tcp reflector when clients disconnect |
Fixed (v0,2) |
Enable Multi-threaded option for Windows |
Fixed (v0.2) |
RBUDP broken pipe error |
Fixed (v0.1) |
List of patches:
- Patch to fix the memory leak in QUANTAnet_remoteFileIO32:: process
function. This patch fixes the segmentation fault error when the client
tries to download file from the server. This patch is just a cvs diff
between the current cvs head and version 0.3.
File name: src/QUANTAnet_remoteFileIO32_c.cxx
Index: QUANTAnet_remoteFileIO32_c.cxx
===================================================================
RCS file: /nfs/cavern/cvs/QUANTA/src/QUANTAnet_remoteFileIO32_c.cxx,v
retrieving revision 1.13
retrieving revision 1.14
diff -r1.13 -r1.14
87a88,93
> ServerData() {
> neighborServerName = NULL;
> client = NULL;
> server = NULL;
> }
>
93c99
< delete[] neighborServerName;
---
> if (neighborServerName) delete[] neighborServerName;
373c379,380
<
---
> // allocate memory for neighborServerName
> data->neighborServerName = new char[strlen(neighborServerName)+
1];
375c382
< data->neighborServerName = &neighborServerName[0];
---
> strcpy(data->neighborServerName,neighborServerName);
|