PIM-3556: Fix memory leak on versionning

you remove the flush here, sure the versions are saved ?