From kde-core-devel Mon Aug 10 11:29:26 2009 From: Andreas Schneider Date: Mon, 10 Aug 2009 11:29:26 +0000 To: kde-core-devel Subject: Re: kio_sftp rewrite Message-Id: <200908101329.26831.mail () cynapses ! org> X-MARC-Message: https://marc.info/?l=kde-core-devel&m=124990390032198 MIME-Version: 1 Content-Type: multipart/mixed; boundary="--nextPart4090639.cm2usOQo42" --nextPart4090639.cm2usOQo42 Content-Type: Text/Plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable On Monday 10 August 2009 11:43:11 Rafael Fern=E1ndez L=F3pez wrote: > *Should* not crash ??? That's funny... > > void sftp_free(SFTP_SESSION *sftp){ > struct request_queue *ptr; > channel_send_eof(sftp->channel); // *MEEEEEEEEEEEEEEK* > channel_free(sftp->channel); > ptr=3Dsftp->queue; > while(ptr){ > struct request_queue *old; > sftp_message_free(ptr->message); > old=3Dptr->next; > free(ptr); > ptr=3Dold; > } > memset(sftp,0,sizeof(*sftp)); > free(sftp); > } Then you don't use libssh 0.3.2, which is required by kio_sftp. I have to=20 think how to do a version check of the library. -- andreas --nextPart4090639.cm2usOQo42 Content-Type: application/pgp-signature; name=signature.asc Content-Description: This is a digitally signed message part. -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.9 (GNU/Linux) iEYEABECAAYFAkqABJYACgkQf94+j/M+P8ZpugCgsjdLLh99Coz+cbExGN6Sjrve Lu8AniZjhv/RYwH0oGuOxx0T3mx1bbEU =w9NP -----END PGP SIGNATURE----- --nextPart4090639.cm2usOQo42--