[MLX4] fix memory leakage in error flow. [mlnx: 4276]