PIM-3288: fix memory leak on product import