Revert "Freeing frame map"

This reverts commit 65e43f5605a8cb949fd3f35ffd2236727bf28354.