[mlpl][SmartBuffer] Fix a bug that uses 'delete' for a region allocated by realloc().