From 3ad6987a415ddbd9e6af1a6cc414387045f8d695 Mon Sep 17 00:00:00 2001 From: "Leandro A. F. Pereira" Date: Fri, 27 Jul 2007 15:03:32 +0000 Subject: Fix crash, plug memleak. --- hardinfo2/arch/linux/common/storage.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (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 6700984b..cd3c3249 100644 --- a/hardinfo2/arch/linux/common/storage.h +++ b/hardinfo2/arch/linux/common/storage.h @@ -335,7 +335,7 @@ __scan_ide_devices(void) g_hash_table_insert(moreinfo, devid, strhash); g_free(model); - model = ""; + model = g_strdup(""); } else g_free(device); -- cgit v1.2.3