[sr-dev] git:5.3:fc9ca0fc: avp: free allocated variable in case of error