improved uwsgi_get_app_id
fixed a leak in uwsgi_get_app_id