Fixes some memory leaks in servercall. See #453.