2009/11/24 Daniel Stenberg <[email protected]>: > On Tue, 24 Nov 2009, Alexander Lamaison wrote: > >> Can someone familiar with sftp.c explain why the memory allocated to >> 'data' by is freed when the conditional 'data[0] == SSH_FXP_STATUS' holds >> but not when it doesn't (line 1605 & 1609 of the latest version of sftp.c)? > > I think it's a bug. Doesn't this patch fix it? > ... > + LIBSSH2_FREE(session, data);
It does indeed. Commited. Thanks. I didn't want to blindly add that without asking in case there was some reason for leaving the packet allocated. Alex _______________________________________________ libssh2-devel http://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel
