[PATCH] linux.c: plug a leak

Jim Meyering meyering at redhat.com
Wed Jul 30 09:10:56 UTC 2008


* libparted/arch/linux.c (_disk_sync_part_table): Free local, "rets".
Reported by Mike Hwang <Mike.Hwang at iqstor.com.cn>.
---
 libparted/arch/linux.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/libparted/arch/linux.c b/libparted/arch/linux.c
index 19ddae5..75e709b 100644
--- a/libparted/arch/linux.c
+++ b/libparted/arch/linux.c
@@ -2240,6 +2240,7 @@ _disk_sync_part_table (PedDisk* disk)
                 }
         }

+        free (rets);
         free (errnums);
         return ret;
 }
--
1.6.0.rc1.2.gc4577



More information about the parted-devel mailing list