1
0
mirror of https://github.com/libssh2/libssh2.git synced 2025-11-23 01:22:37 +03:00

_libssh2_transport_write: remade to send without malloc

This commit is contained in:
Daniel Stenberg
2010-10-21 21:00:28 +02:00
parent 3a391f6cf2
commit 5ede32a826
6 changed files with 102 additions and 188 deletions

View File

@@ -980,11 +980,6 @@ session_free(LIBSSH2_SESSION *session)
LIBSSH2_FREE(session, pkg);
}
/* Cleanup remaining outgoing packet buffer */
if (p->outbuf) {
LIBSSH2_FREE(session, p->outbuf);
}
if(session->socket_prev_blockstate)
/* if the socket was previously blocking, put it back so */
session_nonblock(session->socket_fd, 0);