Add closesocket/done gotos in ssh2_thread()

This commit is contained in:
Brendan Shanks 2017-08-05 18:08:05 -07:00
parent cf3df904a9
commit db22002b7f
1 changed files with 6 additions and 2 deletions

View File

@ -1649,11 +1649,15 @@ closesession:
libssh2_session_disconnect(session, "Normal Shutdown");
libssh2_session_free(session);
close(sock);
libssh2_exit();
}
closesocket:
close(sock);
libssh2_exit();
}
done:
return NULL;
#if 0
context = (lshcontext *)NewPtr(sizeof(lshcontext));