Fix: Fixed memory leak with new way of sending requests to corresponding endpoints

1 job for ph3-devel in 48 seconds (queued for 46 seconds)