comparison src/c/urweb.c @ 1330:452b14d88a10

fix small memory leaks
author Marc Weber <marco-oweber@gmx.de>
date Sun, 05 Dec 2010 18:47:54 +0100
parents 1cc67fdac4d3
children 4dd5d23bace2
comparison
equal deleted inserted replaced
1329:9be9da2df74b 1330:452b14d88a10
550 free(ctx->transactionals); 550 free(ctx->transactionals);
551 uw_free_client_data(ctx->client_data); 551 uw_free_client_data(ctx->client_data);
552 552
553 for (i = 0; i < ctx->n_deltas; ++i) 553 for (i = 0; i < ctx->n_deltas; ++i)
554 buf_free(&ctx->deltas[i].msgs); 554 buf_free(&ctx->deltas[i].msgs);
555 free(ctx->deltas);
555 556
556 for (i = 0; i < ctx->n_globals; ++i) 557 for (i = 0; i < ctx->n_globals; ++i)
557 if (ctx->globals[i].free) 558 if (ctx->globals[i].free)
558 ctx->globals[i].free(ctx->globals[i].data); 559 ctx->globals[i].free(ctx->globals[i].data);
560 free(ctx->globals);
559 561
560 free(ctx); 562 free(ctx);
561 } 563 }
562 564
563 void uw_reset_keep_error_message(uw_context ctx) { 565 void uw_reset_keep_error_message(uw_context ctx) {