update_client_mapping_file(client);
#endif
if (client->n_sets <= 0) {
-#ifdef FILE_WRITING_HACK
- /* temporary hack*/
- unlink(get_filename(client));
-#endif
mrp_htbl_remove(ctx->clients, u_to_p(pid), TRUE);
client = NULL;
}
client_t *client = (client_t *) object;
mrp_htbl_destroy(client->sets, TRUE);
-
+#ifdef FILE_WRITING_HACK
+ /* temporary hack*/
+ unlink(get_filename(client));
+#endif
/* TODO: free memory when resource API allows that */
mrp_free(client);
}
ctx->pid = 0;
}
+ if (ctx->clients) {
+ mrp_htbl_destroy(ctx->clients, TRUE);
+ ctx->clients = NULL;
+ }
+
if (ctx->sighandler) {
mrp_del_sighandler(ctx->sighandler);
ctx->sighandler = NULL;