fixed small memleak in application server setup