Plug memory leak in concat