diff options
author | yamt <yamt@pkgsrc.org> | 2005-03-23 21:40:35 +0000 |
---|---|---|
committer | yamt <yamt@pkgsrc.org> | 2005-03-23 21:40:35 +0000 |
commit | d64f41391ed7ef16d9ce1d349074774a53dcff6a (patch) | |
tree | 57db39b88ac5fb207b465da50c496484d5fd7063 /pkgtools/digest/files | |
parent | ae17c3b7c5127e0571827e61e7953d9f61d486fa (diff) | |
download | pkgsrc-d64f41391ed7ef16d9ce1d349074774a53dcff6a.tar.gz |
fix a memory leak.
Diffstat (limited to 'pkgtools/digest/files')
-rw-r--r-- | pkgtools/digest/files/digest.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/pkgtools/digest/files/digest.c b/pkgtools/digest/files/digest.c index 13c96180487..6c209dd96cc 100644 --- a/pkgtools/digest/files/digest.c +++ b/pkgtools/digest/files/digest.c @@ -1,4 +1,4 @@ -/* $NetBSD: digest.c,v 1.10 2005/03/23 14:32:19 agc Exp $ */ +/* $NetBSD: digest.c,v 1.11 2005/03/23 21:40:35 yamt Exp $ */ /* * Copyright (c) 2001-2005 Alistair G. Crooks. All rights reserved. @@ -39,7 +39,7 @@ #ifndef lint __COPYRIGHT("@(#) Copyright (c) 2001-2005 \ The NetBSD Foundation, Inc. All rights reserved."); -__RCSID("$NetBSD: digest.c,v 1.10 2005/03/23 14:32:19 agc Exp $"); +__RCSID("$NetBSD: digest.c,v 1.11 2005/03/23 21:40:35 yamt Exp $"); #endif @@ -154,6 +154,8 @@ digest_file(char *fn, alg_t *alg) } } + free(digest); + return (rc); } |