Fix memory leak of return value of afb_req_get_application_id