Mercurial > urweb
comparison src/c/urweb.c @ 1144:bafb6a5a52a9
A litter more cautious about NULL applications; plug a memory leak in some Postgres functions
author | Adam Chlipala <adamc@hcoop.net> |
---|---|
date | Sun, 31 Jan 2010 15:28:50 -0500 |
parents | ae818127a725 |
children | 92f37d58828b |
comparison
equal
deleted
inserted
replaced
1143:a9ba22d551f0 | 1144:bafb6a5a52a9 |
---|---|
2882 | 2882 |
2883 for (i = ctx->used_transactionals-1; i >= 0; --i) | 2883 for (i = ctx->used_transactionals-1; i >= 0; --i) |
2884 if (ctx->transactionals[i].free) | 2884 if (ctx->transactionals[i].free) |
2885 ctx->transactionals[i].free(ctx->transactionals[i].data); | 2885 ctx->transactionals[i].free(ctx->transactionals[i].data); |
2886 | 2886 |
2887 return ctx->app->db_rollback(ctx); | 2887 return ctx->app ? ctx->app->db_rollback(ctx) : 0; |
2888 } | 2888 } |
2889 | 2889 |
2890 void uw_commit(uw_context ctx) { | 2890 void uw_commit(uw_context ctx) { |
2891 int i; | 2891 int i; |
2892 | 2892 |