There were a memory leak present in the xavp_clone_level_nodata function. From a look to the code it looks that it was used also in the registrar lookup function if the xavp_rcd parameter was set. This was fixed in 0c93efec739 and also backported to 5.2 and 5.1 branch. This fix is included in 5.2.4, which matches the comment from @sebra.
Close this issue, if you still see it please re-open.