Browse Source

Fixed nasty leftover statement in netpgp_save_ring. Added accumulated memory free in case of stacked accumulating readers.

master
Edouard Tisserant 7 years ago
parent
commit
5ed7a0d585
2 changed files with 4 additions and 1 deletions
  1. +0
    -1
      dist/src/lib/netpgp.c
  2. +4
    -0
      dist/src/lib/reader.c

+ 0
- 1
dist/src/lib/netpgp.c View File

@ -1162,7 +1162,6 @@ netpgp_save_ring(netpgp_t *netpgp,
time_t curtime;
io = netpgp->io;
keyring = netpgp->pubring;
/* file names */
if ((ringfile = netpgp_getvar(netpgp, name)) == NULL) {


+ 4
- 0
dist/src/lib/reader.c View File

@ -234,6 +234,10 @@ pgp_reader_pop(pgp_stream_t *stream)
{
pgp_reader_t *next = stream->readinfo.next;
if (stream->readinfo.accumulate && stream->readinfo.asize > 0) {
free(stream->readinfo.accumulated);
}
stream->readinfo = *next;
free(next);
}


Loading…
Cancel
Save