From 8d8779e945cb8537e8ce669eae1c36390766e9ff Mon Sep 17 00:00:00 2001 From: Marcello Stanisci Date: Tue, 17 Nov 2015 11:50:37 +0100 Subject: Depositing all the coins. Memory corruption when destroying the MHD response object. --- src/include/merchant.h | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'src/include/merchant.h') diff --git a/src/include/merchant.h b/src/include/merchant.h index 582c4cf1..eb430360 100644 --- a/src/include/merchant.h +++ b/src/include/merchant.h @@ -41,10 +41,17 @@ } while (0) /** - * Outcome of a /deposit request for a coin + * Outcome of a /deposit request for a coin. Typically forming an array enclosed + * into the unique PayContext */ struct MERCHANT_DepositConfirmation { + /** + * Reference to the per-deposit-handler Context. Needed by the + * cleanup function to get it freed + */ + struct DepositCallbackContext *dcc; + /** * True if this coin's outcome has been read from * its cb -- cgit v1.2.3