This fixes defect found by coverity: 152027 Pointer to local outside scope. Change-Id: I50f196a04363ffa6e6654b71a9a1d89034580413 Signed-off-by: Luiz Augusto von Dentz <luiz.von.dentz@intel.com>