Updated merged pk.c and x509parse.c changes with new memory allocation functions
diff --git a/library/x509parse.c b/library/x509parse.c
index a11c064..ace7fe8 100644
--- a/library/x509parse.c
+++ b/library/x509parse.c
@@ -2091,7 +2091,7 @@
(const unsigned char *) pwd, strlen( pwd ) );
memset( buf, 0, n + 1 );
- free( buf );
+ polarssl_free( buf );
return( ret );
}
@@ -2111,7 +2111,7 @@
ret = x509parse_public_key( ctx, buf, n );
memset( buf, 0, n + 1 );
- free( buf );
+ polarssl_free( buf );
return( ret );
}