changelog shortlog tags branches changeset file revisions annotate raw help

Mercurial > hg > plan9front / sys/src/cmd/sshfs.c

revision 7410: e9634a89bcd9
parent 7409: 9291b5e14042
     1.1--- a/sys/src/cmd/sshfs.c
     1.2+++ b/sys/src/cmd/sshfs.c
     1.3@@ -569,7 +569,7 @@ dir2attrib(Dir *d, uchar **rp)
     1.4 	int uid, gid;
     1.5 
     1.6 	werrstr("phase error");
     1.7-	r = emalloc9p(MAXATTRIB);
     1.8+	*rp = r = emalloc9p(MAXATTRIB);
     1.9 	e = r + MAXATTRIB;
    1.10 	fl = 0;
    1.11 	p = r + 4;
    1.12@@ -604,7 +604,6 @@ dir2attrib(Dir *d, uchar **rp)
    1.13 		rc = pack(p, e - p, "uu", d->atime, d->mtime); if(rc < 0) return -1; p += rc;
    1.14 	}
    1.15 	PUT4(r, fl);
    1.16-	*rp = r;
    1.17 	return p - r;
    1.18 }
    1.19 
    1.20@@ -929,6 +928,7 @@ sendproc(void *)
    1.21 			if(x < 0){
    1.22 				responderror(r->req);
    1.23 				putsreq(r);
    1.24+				free(s);
    1.25 				break;
    1.26 			}
    1.27 			rlock(sf);