Merge branch 'PIM-3556-stable' into PIM-3556-merge : PIM-3556: Fix memory leak on versionning

| Q                    | A
| -------------------- | ---
| Bug fix?             | PIM-3556
| New feature?         | N
| BC breaks?           | N
| CI currently passes? | Y
| Tests pass?          | Y
| Scenarios pass?      | Y
| Checkstyle issues?*  | N
| PMD issues?**        | N
| Changelog updated?   | Y
| Fixed tickets        | PIM-3556
| DB schema updated?   | N
| Migration script?    | N
| Doc PR               | N