mirror of
git://git.gnupg.org/gnupg.git
synced 2025-01-03 12:11:33 +01:00
g13: Fix releasing of a syshelp context.
* g13/call-syshelp.c (call_syshelp_release): Allow a NULL arg. Signed-off-by: Werner Koch <wk@gnupg.org>
This commit is contained in:
parent
c5d7045daf
commit
6390beca54
@ -119,6 +119,11 @@ start_syshelp (ctrl_t ctrl)
|
|||||||
void
|
void
|
||||||
call_syshelp_release (ctrl_t ctrl)
|
call_syshelp_release (ctrl_t ctrl)
|
||||||
{
|
{
|
||||||
assuan_release (ctrl->syshelp_local->assctx);
|
if (!ctrl)
|
||||||
ctrl->syshelp_local->assctx = NULL;
|
return;
|
||||||
|
if (ctrl->syshelp_local)
|
||||||
|
{
|
||||||
|
assuan_release (ctrl->syshelp_local->assctx);
|
||||||
|
ctrl->syshelp_local->assctx = NULL;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user