fix realloc() error on reboot container
fix realloc() error on reboot container

The container with "lxc.network.type=phys" halted with error on reboot.

Error message:
*** glibc detected *** lxc-start: realloc(): invalid pointer: 0x0948eed0 ***

We have a sequence:

1) conf->saved_nic = relloc(NULL) on start start.c:container save_phys_nics()
2) free(conf->saved_nics) after stop container
   conf.c:lxc_rename_phys_nics_on_shutdown()
3) conf->saved_nic = relloc(conf->saved_nics) on restart container
   start.c:save_phys_nics() -> error relloc()

free(conf->saved_nics) in lxc_rename_phys_nics_on_shutdown()
unnecessary, it will be called later in lxc_clear_saved_nics().

Signed-off-by: Vitaly Lavrov <ea53aa6e83e94963380f020a8f91b8dc7b006a9b@gmail.com>
Acked-by: Stéphane Graber <089afc6d81f66f1168a9849e15660feae286e024@ubuntu.com>

ecarrara/lxc,federicobriata/lxc,virajs/lxc,Ponce/lxc,caglar10ur/lxc,virajs/lxc,sapun/lxc,ss1h2a3tw/lxc,thmo/lxc,regit/lxc,hallyn/lxc,JohnPeacockMessageSystems/lxc,Ponce/lxc,federicobriata/lxc,GreatFruitOmsk/lxc,federicobriata/lxc,major/lxc,yubo/lxc,efiop/lxc,regit/lxc,hfuCN/lxc,LynxChaus/lxc,ecarrara/lxc,weizhenwei/lxc,efiop/lxc,christiaan/lxc,DarknessBeforeDawn/lxc,christiaan/lxc,yubo/lxc,tych0/lxc,QingweiPeterLan/cs188-lxc,major/lxc,cjwatson/lxc,DarknessBeforeDawn/lxc,ksperis/lxc,fwilson42/lxc,virajs/lxc,hfuCN/lxc,szaszg/lxc,aeris/lxc,hkjolhede/lxc,Distrotech/lxc,szaszg/lxc,codebauss/lxc,Pelagicore/lxc,LynxChaus/lxc,terceiro/lxc,efiop/lxc,lisongmin/lxc,fwilson42/lxc,codebauss/lxc,bmoar/lxc,Distrotech/lxc,bostjan/lxc,rowhit/lxc,rowhit/lxc,raspberrypython/lxc,hallyn/lxc,ksperis/lxc,ss1h2a3tw/lxc,QingweiPeterLan/cs188-lxc,ioops/lxc,aeris/lxc,tych0/lxc,ysbnim/lxc,cjwatson/lxc,lazy404/lxc,Ponce/lxc,DarknessBeforeDawn/lxc,ysbnim/lxc,bmoar/lxc,rldleblanc/lxc,bmoar/lxc,thmo/lxc,sapun/lxc,jirislaby/lxc,jirislaby/lxc,ioops/lxc,caglar10ur/lxc,raspberrypython/lxc,aeris/lxc,GreatFruitOmsk/lxc,szaszg/lxc,akshaykarle/lxc,ioops/lxc,terceiro/lxc,major/lxc,weizhenwei/lxc,armcc/lxc,ksperis/lxc,terceiro/lxc,bostjan/lxc,akshaykarle/lxc,armcc/lxc,armcc/lxc,tych0/lxc,ysbnim/lxc,QingweiPeterLan/cs188-lxc,hkjolhede/lxc,JohnPeacockMessageSystems/lxc,fwilson42/lxc,Pelagicore/lxc,hkjolhede/lxc,sapun/lxc,bostjan/lxc,LynxChaus/lxc,jirislaby/lxc,ss1h2a3tw/lxc,thmo/lxc,raspberrypython/lxc,lazy404/lxc,Distrotech/lxc,GreatFruitOmsk/lxc,yubo/lxc,lisongmin/lxc,lisongmin/lxc,cjwatson/lxc,regit/lxc,rldleblanc/lxc,caglar10ur/lxc,codebauss/lxc,hallyn/lxc,hfuCN/lxc,rldleblanc/lxc,weizhenwei/lxc,Pelagicore/lxc,lazy404/lxc,akshaykarle/lxc,JohnPeacockMessageSystems/lxc,ecarrara/lxc,christiaan/lxc,rowhit/lxc