projects
/
onak.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Inital subkey searching support for db3 backend.
[onak.git]
/
mem.c
diff --git
a/mem.c
b/mem.c
index 0795bf3b66f93ab42d0632f6e0c22ffa1e25a43b..4a713e4ea5dec6b67fdfb8ff78a0ea22551432e9 100644
(file)
--- a/
mem.c
+++ b/
mem.c
@@
-4,16
+4,18
@@
* Jonathan McDowell <noodles@earth.li>
*
* Copyright 2002 Project Purple
* Jonathan McDowell <noodles@earth.li>
*
* Copyright 2002 Project Purple
+ *
+ * $Id: mem.c,v 1.6 2003/06/07 13:45:35 noodles Exp $
*/
#include <assert.h>
#include <stdio.h>
#include <stdlib.h>
*/
#include <assert.h>
#include <stdio.h>
#include <stdlib.h>
+#include <string.h>
#include "keystructs.h"
#include "ll.h"
#include "mem.h"
#include "keystructs.h"
#include "ll.h"
#include "mem.h"
-#include "stats.h"
/**
* packet_dup - duplicate an OpenPGP packet.
/**
* packet_dup - duplicate an OpenPGP packet.
@@
-188,6
+190,10
@@
void free_statskey(struct stats_key *key)
llfree(key->sigs, NULL);
key->sigs = NULL;
}
llfree(key->sigs, NULL);
key->sigs = NULL;
}
+ if (key->signs != NULL) {
+ llfree(key->signs, NULL);
+ key->signs = NULL;
+ }
free(key);
}
}
free(key);
}
}