#include <assert.h>
#include <stdio.h>
#include <stdlib.h>
+#include <string.h>
#include "keystructs.h"
#include "ll.h"
#include "mem.h"
-#include "stats.h"
/**
* packet_dup - duplicate an OpenPGP packet.
llfree(key->sigs, NULL);
key->sigs = NULL;
}
+ if (key->signs != NULL) {
+ llfree(key->signs, NULL);
+ key->signs = NULL;
+ }
free(key);
}
}