1
0
mirror of https://github.com/esp8266/Arduino.git synced 2025-04-19 23:22:16 +03:00

realloc bug: fix #3953 (#3957)

fix #3699
This commit is contained in:
david gauchard 2017-12-13 14:30:33 +01:00 committed by Develo
parent bd261c05f1
commit cb723a5960

View File

@ -1632,9 +1632,9 @@ static void *_umm_realloc( void *ptr, size_t size ) {
if( (ptr = _umm_malloc( size )) ) { if( (ptr = _umm_malloc( size )) ) {
memcpy( ptr, oldptr, curSize ); memcpy( ptr, oldptr, curSize );
_umm_free( oldptr );
} }
_umm_free( oldptr );
} }
/* Release the critical section... */ /* Release the critical section... */