diff options
author | Rainer Gerhards <rgerhards@adiscon.com> | 2013-03-23 13:07:12 +0100 |
---|---|---|
committer | Rainer Gerhards <rgerhards@adiscon.com> | 2013-03-23 13:07:12 +0100 |
commit | c77a77a6c7919d17936e6ba2f71b0903cac9c890 (patch) | |
tree | 8923023757a1f3bc79f8ccb495afca8f03d6b058 /tools/rsgtutil.c | |
parent | 487711fb5e64a5311b62eee9ce103d8044b915e3 (diff) | |
download | rsyslog-c77a77a6c7919d17936e6ba2f71b0903cac9c890.tar.gz rsyslog-c77a77a6c7919d17936e6ba2f71b0903cac9c890.tar.bz2 rsyslog-c77a77a6c7919d17936e6ba2f71b0903cac9c890.zip |
rsgtutil: refactor 'verify' mode to use new tlv file read functions
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; |