Hi,
The following line produces a memory leak, compiled
on Win32 MinGW (dmalloc) - no problems on Linux:
libgcrypt-1.4.1/cipher/pubkey.c:2197
I will try to get the call stack.
Sample code below.
Thanks
Markus
/* exec "uptime" */
int rc = libssh2_channel_exec( channel, "uptime" );
if( rc != 0 )
exit( 1 );
for( ;; )
{
char buffer[0x4000];
int rc = libssh2_channel_read( channel, buffer, sizeof(buffer) );
if( rc <= 0 )
break;
/* process output */
}
int exitcode = 127;
if( libssh2_channel_close(channel) == 0 )
{
//if( libssh2_channel_wait_closed(channel) == 0 )
exitcode = libssh2_channel_get_exit_status( channel );
}
printf( "exit code: %d", exitcode );
------------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It is the best place to buy or sell services for
just about anything Open Source.
http://p.sf.net/sfu/Xq1LFB
_______________________________________________
libssh2-devel mailing list
libssh2-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/libssh2-devel