Fix default #define for malloc/free

This commit is contained in:
Manuel Pégourié-Gonnard 2014-04-02 13:20:00 +02:00
parent 75a2860f26
commit 74bc68ac62
2 changed files with 3 additions and 2 deletions

View File

@ -11,6 +11,7 @@ Bugfix
* Some example server programs were not sending the close_notify alert. * Some example server programs were not sending the close_notify alert.
* Potential memory leak in mpi_exp_mod() when error occurs during * Potential memory leak in mpi_exp_mod() when error occurs during
calculation of RR. calculation of RR.
* Fixed malloc/free default #define in platform.c (found by Gergely Budai).
= PolarSSL 1.3.5 released on 2014-03-26 = PolarSSL 1.3.5 released on 2014-03-26
Features Features

View File

@ -37,7 +37,7 @@ static void *platform_malloc_uninit( size_t len )
return( NULL ); return( NULL );
} }
#define POLARSSL_PLATFORM_STD_MALLOC memory_malloc_uninit #define POLARSSL_PLATFORM_STD_MALLOC platform_malloc_uninit
#endif /* !POLARSSL_PLATFORM_STD_MALLOC */ #endif /* !POLARSSL_PLATFORM_STD_MALLOC */
#if !defined(POLARSSL_PLATFORM_STD_FREE) #if !defined(POLARSSL_PLATFORM_STD_FREE)
@ -46,7 +46,7 @@ static void platform_free_uninit( void *ptr )
((void) ptr); ((void) ptr);
} }
#define POLARSSL_PLATFORM_STD_FREE memory_free_uninit #define POLARSSL_PLATFORM_STD_FREE platform_free_uninit
#endif /* !POLARSSL_PLATFORM_STD_FREE */ #endif /* !POLARSSL_PLATFORM_STD_FREE */
void * (*polarssl_malloc)( size_t ) = POLARSSL_PLATFORM_STD_MALLOC; void * (*polarssl_malloc)( size_t ) = POLARSSL_PLATFORM_STD_MALLOC;