From 1e7d8809a883bc415bdf1f1c619f95bc64ccc4fc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jean-Pierre=20Andr=C3=A9?= Date: Wed, 23 Mar 2011 09:16:57 +0100 Subject: [PATCH] Fixed freeing upcase in ntfsfix (avoiding memory leak detection) Under some error condition, the upcase table was not freed. Just cosmetic fix to avoid a memory leak detection. --- ntfsprogs/ntfsfix.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/ntfsprogs/ntfsfix.c b/ntfsprogs/ntfsfix.c index bbcaa39e..1ac60e6f 100644 --- a/ntfsprogs/ntfsfix.c +++ b/ntfsprogs/ntfsfix.c @@ -832,8 +832,10 @@ error_exit: } eo = errno; free(bs); - if (vol) + if (vol) { + free(vol->upcase); free(vol); + } if (dev_open) { (dev->d_ops->close)(dev); }