Fixed mismatching allocation and deallocation: el_ptr
Merge pull request #1276 from nghiaho12:mushroom