From c7ad0e5361df5dbca9c99c2d65b4d603f6475f6d Mon Sep 17 00:00:00 2001 From: Dmitry Kozlov Date: Sun, 18 May 2014 21:21:19 +0000 Subject: triton: fix possible race --- accel-pppd/triton/triton_p.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'accel-pppd/triton/triton_p.h') diff --git a/accel-pppd/triton/triton_p.h b/accel-pppd/triton/triton_p.h index 443cede..9401729 100644 --- a/accel-pppd/triton/triton_p.h +++ b/accel-pppd/triton/triton_p.h @@ -41,6 +41,7 @@ struct _triton_context_t int need_free; int pending; int priority; + int refs; struct triton_context_t *ud; void *bf_arg; @@ -107,5 +108,6 @@ int conf_reload(const char *fname); void triton_log_error(const char *fmt, ...) __attribute__((format(gnu_printf, 1, 2))); void triton_log_debug(const char *fmt, ...) __attribute__((format(gnu_printf, 1, 2))); int load_modules(const char *name); +void triton_context_release(struct _triton_context_t *ctx); #endif -- cgit v1.2.3