Reuse previousExtent_ local variable
Merge pull request #3056 from fredj/memory-extent

Reuse previousExtent_ local variable