Fork自 RT-Thread / rt-thread
- missing free old memory after malloc new - free memory when new size is zero