[sr-dev] git:master: p_usrloc: clean memory in case of malloc error