PIM-3556: Fix memory leak on versionning
Merge pull request #1929 from akeneo/PIM-3556-stable

PIM-3556 (stable): Fix memory leak on versionning