@lyatanski commented on this pull request.
@@ -423,7 +434,7 @@ int pv_fetch_contacts(
rpp->aor.s = (char *)pkg_malloc(aor.len * sizeof(char)); if(rpp->aor.s == NULL) { LM_ERR("no more pkg\n"); - return -1; + goto error;
done, returned it back to just exiting, but changed 451 line to `goto error;` as there we have allocated memory for the AOR and have to clean it up before exiting