Pointers in rowMap are not deleted before they are removed in rowMap. (cherry picked from commit 19c00227)