[sr-dev] git:master:5a18155c: avp: free allocated variable in case of error