Updated merged pk.c and x509parse.c changes with new memory allocation functions
This commit is contained in:
parent
dbd79ca617
commit
d9ca94a677
2 changed files with 11 additions and 4 deletions
|
@ -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 );
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue