From: simon Date: Thu, 11 Jul 2013 17:24:53 +0000 (+0000) Subject: xfer_{up,down}load_gotpkt free their input sftp_packet as a side X-Git-Url: https://git.distorted.org.uk/u/mdw/putty/commitdiff_plain/cb5488c53f54fbdb36ce3f43bbf72d32c002b26a?hp=cb5488c53f54fbdb36ce3f43bbf72d32c002b26a xfer_{up,down}load_gotpkt free their input sftp_packet as a side effect of handling it, but they do not free it if it isn't a packet they recognise as part of their upload/download. Invent a return value that specifically signals this, and consistently free pktin at every call site if that return value comes back. Also, ensure that that return value also always comes with something meaningful in fxp_error. git-svn-id: svn://svn.tartarus.org/sgt/putty@9915 cda61777-01e9-0310-a592-d414129be87e ---