add missing delayed purge logic
This commit is contained in:
parent
cbba3d5f29
commit
6082ac8151
@ -78,9 +78,7 @@ struct DenominationKey
|
|||||||
char *filename;
|
char *filename;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* The private key of the denomination. Will be NULL if the private
|
* The private key of the denomination.
|
||||||
* key is not available (this is the case after the key has expired
|
|
||||||
* for signing coins, but is still valid for depositing coins).
|
|
||||||
*/
|
*/
|
||||||
struct TALER_DenominationPrivateKey denom_priv;
|
struct TALER_DenominationPrivateKey denom_priv;
|
||||||
|
|
||||||
@ -590,6 +588,14 @@ handle_done (void *cls)
|
|||||||
&sr->header);
|
&sr->header);
|
||||||
GNUNET_free (sr);
|
GNUNET_free (sr);
|
||||||
}
|
}
|
||||||
|
{
|
||||||
|
struct DenominationKey *dk = wi->dk;
|
||||||
|
|
||||||
|
dk->rc--;
|
||||||
|
if ( (0 == dk->rc) &&
|
||||||
|
(dk->purge) )
|
||||||
|
free_dk (dk);
|
||||||
|
}
|
||||||
GNUNET_free (wi);
|
GNUNET_free (wi);
|
||||||
GNUNET_assert (0 == pthread_mutex_lock (&done_lock));
|
GNUNET_assert (0 == pthread_mutex_lock (&done_lock));
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user