Use correct return when clone fails
Use correct return when clone fails

When the clone failed we tried to destroy the container. This will lead to a
segfault. Instead simply return -1. Also move the call to free_mnts() after the
put label to free the user specified mounts even when we just goto put.

Signed-off-by: Christian Brauner <94aca18939fc64aa4df96ea8cb026da8a2e1541a@gmail.com>
Acked-by: Serge E. Hallyn <3df611b026e4639bee8aef7a4beb2e39fcebb313@ubuntu.com>

federicobriata/lxc,ysbnim/lxc,bostjan/lxc,bostjan/lxc,GreatFruitOmsk/lxc,cjwatson/lxc,terceiro/lxc,GreatFruitOmsk/lxc,akshaykarle/lxc,caglar10ur/lxc,cjwatson/lxc,Distrotech/lxc,Distrotech/lxc,ksperis/lxc,aeris/lxc,armcc/lxc,GreatFruitOmsk/lxc,aeris/lxc,ksperis/lxc,tych0/lxc,tych0/lxc,federicobriata/lxc,QingweiPeterLan/cs188-lxc,ysbnim/lxc,armcc/lxc,QingweiPeterLan/cs188-lxc,ss1h2a3tw/lxc,ksperis/lxc,terceiro/lxc,terceiro/lxc,hallyn/lxc,thmo/lxc,hallyn/lxc,armcc/lxc,aeris/lxc,akshaykarle/lxc,thmo/lxc,cjwatson/lxc,hfuCN/lxc,hallyn/lxc,federicobriata/lxc,hfuCN/lxc,tych0/lxc,ss1h2a3tw/lxc,ss1h2a3tw/lxc,Distrotech/lxc,LynxChaus/lxc,ysbnim/lxc,thmo/lxc,bostjan/lxc,akshaykarle/lxc,caglar10ur/lxc,QingweiPeterLan/cs188-lxc,hfuCN/lxc,LynxChaus/lxc,caglar10ur/lxc,LynxChaus/lxc