Updated merged pk.c and x509parse.c changes with new memory allocation functions

This commit is contained in:
Paul Bakker 2013-07-25 11:25:09 +02:00
parent dbd79ca617
commit d9ca94a677
2 changed files with 11 additions and 4 deletions

View file

@ -2091,7 +2091,7 @@ int x509parse_keyfile( pk_context *ctx,
(const unsigned char *) pwd, strlen( pwd ) );
memset( buf, 0, n + 1 );
free( buf );
polarssl_free( buf );
return( ret );
}
@ -2111,7 +2111,7 @@ int x509parse_public_keyfile( pk_context *ctx, const char *path )
ret = x509parse_public_key( ctx, buf, n );
memset( buf, 0, n + 1 );
free( buf );
polarssl_free( buf );
return( ret );
}