avoid double free for SIR/SDR parameter strings in case of a consistency

check error


git-svn-id: https://urjtag.svn.sourceforge.net/svnroot/urjtag/trunk@1454 b68d4a1b-bc3d-0410-92ed-d4ac073336b7
master
Arnim Läuger 16 years ago
parent d954394b07
commit 6c6c47df8d

@ -1,5 +1,8 @@
2009-03-08 Arnim Laeuger <arniml>
* src/svf/svf.c: avoid double free for SIR/SDR parameter strings in case
of a consistency check error
* src/bsdl/bsdl_sem.c: avoid leading space when printing commands
2009-03-07 Arnim Laeuger <arniml>

@ -824,15 +824,15 @@ svf_sxr(chain_t *chain, parser_priv_t *priv, enum generic_irdr_coding ir_dr,
sxr_params->no_tdi = 0;
}
/* result of consistency check */
if (!result)
return(0);
/* take over responsability for free'ing parameter strings */
params->tdi = NULL;
params->mask = NULL;
params->smask = NULL;
/* result of consistency check */
if (!result)
return(0);
/*
* handle tap registers

Loading…
Cancel
Save