diff options
author | 2010-01-31 15:28:50 -0500 | |
---|---|---|
committer | 2010-01-31 15:28:50 -0500 | |
commit | eb165d80ac5fa8e9c19e50671de6e0c1173fe5e8 (patch) | |
tree | 51b1935e4a473df79627ff6088a3e30b08fe60e8 /src/c | |
parent | 43566cdd19751c5f308b451ee99aeecc57b5f0b3 (diff) |
A litter more cautious about NULL applications; plug a memory leak in some Postgres functions
Diffstat (limited to 'src/c')
-rw-r--r-- | src/c/urweb.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/c/urweb.c b/src/c/urweb.c index 0ec741cc..ad0d33d9 100644 --- a/src/c/urweb.c +++ b/src/c/urweb.c @@ -2884,7 +2884,7 @@ int uw_rollback(uw_context ctx) { if (ctx->transactionals[i].free) ctx->transactionals[i].free(ctx->transactionals[i].data); - return ctx->app->db_rollback(ctx); + return ctx->app ? ctx->app->db_rollback(ctx) : 0; } void uw_commit(uw_context ctx) { |