diff options
Diffstat (limited to 'commands')
-rw-r--r-- | commands/digest.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/commands/digest.c b/commands/digest.c index bad7d3f094..c6a2751356 100644 --- a/commands/digest.c +++ b/commands/digest.c @@ -33,7 +33,7 @@ static int do_digest(char *algorithm, int argc, char *argv[]) int i; unsigned char *hash; - d = digest_get_by_name(algorithm); + d = digest_alloc(algorithm); BUG_ON(!d); if (argc < 2) @@ -71,6 +71,7 @@ static int do_digest(char *algorithm, int argc, char *argv[]) } free(hash); + digest_free(d); return ret; } |