kio_sftp rewrite

Rafael Fernández López ereslibre at kde.org
Mon Aug 10 10:43:11 BST 2009


*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=sftp->queue;
      while(ptr){
          struct request_queue *old;
          sftp_message_free(ptr->message);
          old=ptr->next;
          free(ptr);
          ptr=old;
    }
      memset(sftp,0,sizeof(*sftp));
      free(sftp);
}
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/kde-core-devel/attachments/20090810/910d6720/attachment.htm>


More information about the kde-core-devel mailing list