Mercurial > urweb
comparison src/c/urweb.c @ 2030:6add6d00ef5f
Call try_rollback before resetting the context
This will allow FFI cleanup handlers to complete.
author | Sergey Mironov <grrwlf@gmail.com> |
---|---|
date | Sun, 15 Jun 2014 21:13:12 +0000 |
parents | 6372a742ab04 |
children | ea0ecd5fa9df |
comparison
equal
deleted
inserted
replaced
2029:dfa35ca83d92 | 2030:6add6d00ef5f |
---|---|
3341 | 3341 |
3342 for (i = ctx->used_transactionals-1; i >= 0; --i) | 3342 for (i = ctx->used_transactionals-1; i >= 0; --i) |
3343 if (ctx->transactionals[i].free) | 3343 if (ctx->transactionals[i].free) |
3344 ctx->transactionals[i].free(ctx->transactionals[i].data, 1); | 3344 ctx->transactionals[i].free(ctx->transactionals[i].data, 1); |
3345 | 3345 |
3346 return 1; | 3346 return 1; |
3347 } | 3347 } |
3348 | 3348 |
3349 for (i = ctx->used_transactionals-1; i >= 0; --i) | 3349 for (i = ctx->used_transactionals-1; i >= 0; --i) |
3350 if (ctx->transactionals[i].free) | 3350 if (ctx->transactionals[i].free) |
3351 ctx->transactionals[i].free(ctx->transactionals[i].data, 0); | 3351 ctx->transactionals[i].free(ctx->transactionals[i].data, 0); |