diff options
Diffstat (limited to 'tools/rsgtutil.c')
-rw-r--r-- | tools/rsgtutil.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/tools/rsgtutil.c b/tools/rsgtutil.c index c5ac5066..c78671c7 100644 --- a/tools/rsgtutil.c +++ b/tools/rsgtutil.c @@ -181,7 +181,7 @@ static void verify(char *name) { FILE *logfp = NULL, *sigfp = NULL; - block_sig_t *bs; + block_sig_t *bs = NULL; gtfile gf; uint8_t bHasRecHashes, bHasIntermedHashes; uint8_t bInBlock; @@ -225,6 +225,8 @@ verify(char *name) while(!feof(logfp)) { if(bInBlock == 0) { + if(bs != NULL) + rsgt_objfree(0x0902, bs); if((r = rsgt_getBlockParams(sigfp, 1, &bs, &bHasRecHashes, &bHasIntermedHashes)) != 0) goto err; |