fix possible memory leak
Revert "fix build"

This reverts commit 6affa9c93f4d60fb934f7fe2339a389060eb870c.
Revert "disable perflock"

This reverts commit 5cca65f813e4f132d03ac4c5f235c81f1e7adfba.
Disabled perflock / fixed interactive