Fix memory leaks found by tysonite
Fix memory leaks found by tysonite

robxu9/libssh,miloj/libssh-v0.5,pouete/libssh,Distrotech/libssh,sebadoom/libssh,elastichosts/libssh,taikoo/libssh,bigcat26/libssh-mod,mwgoldsmith/ssh,jahrome/libssh,robxu9/libssh,nviennot/libssh,substack/libssh,jt1/honeypot-libssh,elastichosts/libssh,jt1/honeypot-libssh,robxu9/libssh,sebadoom/libssh,substack/libssh,nviennot/libssh,DouglasHeriot/libssh,bigcat26/libssh-mod,jt1/honeypot-libssh,DouglasHeriot/libssh,taikoo/libssh,wangshawn/libssh,kedazo/libssh,mwgoldsmith/libssh,rofl0r/libssh,elastichosts/libssh,kedazo/libssh,jahrome/libssh,nviennot/libssh,wangshawn/libssh,Distrotech/libssh,mwgoldsmith/ssh,kedazo/libssh,substack/libssh,taikoo/libssh,wangshawn/libssh,mwgoldsmith/ssh,mwgoldsmith/libssh,sebadoom/libssh,jahrome/libssh,DouglasHeriot/libssh,mwgoldsmith/libssh,rofl0r/libssh,substack/libssh,wangshawn/libssh,rofl0r/libssh,pouete/libssh,mwgoldsmith/libssh,miloj/libssh-v0.5,kedazo/libssh,miloj/libssh-v0.5,jt1/honeypot-libssh,robxu9/libssh,bigcat26/libssh-mod,Distrotech/libssh,jahrome/libssh,DouglasHeriot/libssh,miloj/libssh-v0.5,mwgoldsmith/ssh,nviennot/libssh,taikoo/libssh,pouete/libssh,pouete/libssh,rofl0r/libssh,bigcat26/libssh-mod,Distrotech/libssh,sebadoom/libssh