mlx4_core: Fix memory leaks in SR-IOV error paths