coverity: fix potential dereference NULL returned from malloc
coverity: fix potential dereference NULL returned from malloc

Signed-off-by: Dwight Engen <1793d65cf7b9eefb2bb8f5bee9a4b8ba782c26da@oracle.com>
Acked-by: Serge E. Hallyn <3df611b026e4639bee8aef7a4beb2e39fcebb313@ubuntu.com>

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