diff options
author | Werner Koch <wk@gnupg.org> | 2009-10-28 13:02:15 +0100 |
---|---|---|
committer | Werner Koch <wk@gnupg.org> | 2009-10-28 13:02:15 +0100 |
commit | a1b614285518c1e4928919b905e992f35f4a3224 (patch) | |
tree | b8b0fdbc2459188fcdef689b32b17cf40871f644 /scd/scdaemon.c | |
parent | 2009-10-20 Marcus Brinkmann <marcus@g10code.com> (diff) | |
download | gnupg2-a1b614285518c1e4928919b905e992f35f4a3224.tar.xz gnupg2-a1b614285518c1e4928919b905e992f35f4a3224.zip |
[scd] Memory leak fix.
[g13] Send MOUNTPOINT status line
Diffstat (limited to 'scd/scdaemon.c')
-rw-r--r-- | scd/scdaemon.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/scd/scdaemon.c b/scd/scdaemon.c index f483d2098..5823c9948 100644 --- a/scd/scdaemon.c +++ b/scd/scdaemon.c @@ -895,7 +895,11 @@ scd_init_default_ctrl (ctrl_t ctrl) static void scd_deinit_default_ctrl (ctrl_t ctrl) { - (void)ctrl; + if (!ctrl) + return; + xfree (ctrl->in_data.value); + ctrl->in_data.value = NULL; + ctrl->in_data.valuelen = 0; } |