shithub: riscv

Download patch

ref: 9ba04fd030876aa2e385d3248ba19f5a80d3c799
parent: 93a86cea66385d3e8ca94dc24b163d9f3149852f
author: cinap_lenrek <cinap_lenrek@felloff.net>
date: Mon Apr 18 15:07:02 EDT 2016

webfs: fix memory leak of serverName in tlswrap()

--- a/sys/src/cmd/webfs/http.c
+++ b/sys/src/cmd/webfs/http.c
@@ -84,7 +84,6 @@
 		conn.serverName = smprint("%N", servername);
 	if((fd = tlsClient(fd, &conn)) < 0){
 		if(debug) fprint(2, "tlsClient: %r\n");
-		return -1;
 	}
 	free(conn.cert);
 	free(conn.sessionID);