aboutsummaryrefslogtreecommitdiffstats
path: root/g10/keyedit.c
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--g10/keyedit.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/g10/keyedit.c b/g10/keyedit.c
index 6f9c1c7c1..ea64d3870 100644
--- a/g10/keyedit.c
+++ b/g10/keyedit.c
@@ -902,10 +902,11 @@ show_key_and_fingerprint( KBNODE keyblock )
static void
show_fingerprint( PKT_public_key *pk )
{
- byte *array, *p;
+ byte array[MAX_FINGERPRINT_LEN], *p;
size_t i, n;
- p = array = fingerprint_from_pk( pk, NULL, &n );
+ fingerprint_from_pk( pk, array, &n );
+ p = array;
tty_printf(" Fingerprint:");
if( n == 20 ) {
for(i=0; i < n ; i++, i++, p += 2 ) {
@@ -922,7 +923,6 @@ show_fingerprint( PKT_public_key *pk )
}
}
tty_printf("\n");
- m_free(array);
}