Bug 1449 - memory leak in ftp_client
: memory leak in ftp_client
Status: RESOLVED FIXED
: GridFTP
GridFTP
: unspecified
: PC Linux
: P2 major
: ---
Assigned To:
:
:
:
:
  Show dependency treegraph
 
Reported: 2003-12-08 08:14 by
Modified: 2003-12-12 12:24 (History)


Attachments


Note

You need to log in before you can comment on or make changes to this bug.


Description From 2003-12-08 08:14:12
There seems to be a memory leak in the handle_destroy methods. I wrote this
small test program here to make sure. It reaches ~ 60MB in size ..

#include <globus_gass_copy.h>
#include <globus_io.h>

int
aa() {

 globus_ftp_client_handleattr_t     ftp_handleattr;
 globus_ftp_client_handle_t delete_handle;
 globus_ftp_client_handleattr_init(&ftp_handleattr);
 globus_ftp_client_handle_init(&delete_handle, &ftp_handleattr);
 globus_ftp_client_handle_destroy(&delete_handle);
 globus_ftp_client_handleattr_destroy(&ftp_handleattr);
 return 0;
};


int main() {
 globus_module_activate(GLOBUS_GASS_COPY_MODULE);
 globus_module_activate(GLOBUS_IO_MODULE);
    for (int i = 0; i < 1000000; ++i)
   aa();

 return 0;
}
------- Comment #1 From 2003-12-12 12:24:07 -------
This turned out to be a bug in globus_common.  The fix is in cvs and an update 
package will be available later today.

Joe