From b2d570a78ba003c7ead6096f37f3348b503db634 Mon Sep 17 00:00:00 2001 From: "Leandro A. F. Pereira" Date: Wed, 3 Jan 2007 21:13:15 +0000 Subject: Plug memleaks. --- hardinfo2/arch/linux/common/storage.h | 6 ------ 1 file changed, 6 deletions(-) (limited to 'hardinfo2/arch/linux/common/storage.h') diff --git a/hardinfo2/arch/linux/common/storage.h b/hardinfo2/arch/linux/common/storage.h index 8e248d3b..836ba7ea 100644 --- a/hardinfo2/arch/linux/common/storage.h +++ b/hardinfo2/arch/linux/common/storage.h @@ -22,8 +22,6 @@ static gboolean remove_scsi_devices(gpointer key, gpointer value, gpointer data) { if (!strncmp((gchar *) key, "SCSI", 4)) { - g_free((gchar *) key); - g_free((GtkTreeIter *) value); return TRUE; } return FALSE; @@ -150,15 +148,11 @@ static gboolean remove_ide_devices(gpointer key, gpointer value, gpointer data) { if (!strncmp((gchar *) key, "IDE", 3)) { - g_free((gchar *) key); - g_free((gchar *) value); - return TRUE; } return FALSE; } - void __scan_ide_devices(void) { -- cgit v1.2.3