gns-api: fixed incorrect usage of WSGI interface -> fixed objects leak