shithub: riscv

Download patch

ref: 079d3f4002526164e0d430cca83383af8f213a84
parent: 4be3300e98c37e88fe5e15d23d9d791c8286c214
author: cinap_lenrek <[email protected]>
date: Sun Jun 7 18:12:46 EDT 2015

libsec/ecc: fix memory leak (free() vs mpfree())

--- a/sys/src/libsec/port/ecc.c
+++ b/sys/src/libsec/port/ecc.c
@@ -383,8 +383,8 @@
 	if(rptr)
 		*rptr = s;
 	if(allocd){
-		free(ret->x);
-		free(ret->y);
+		mpfree(ret->x);
+		mpfree(ret->y);
 		free(ret);
 	}
 	return nil;