From cdc40b11f4d7a3050bda164b2d92afc23616b7f9 Mon Sep 17 00:00:00 2001 From: "Leandro A. F. Pereira" Date: Thu, 5 Jul 2007 19:21:21 +0000 Subject: Cleanups. Plug most of the memleaks. --- hardinfo2/arch/linux/common/boots.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'hardinfo2/arch/linux/common/boots.h') diff --git a/hardinfo2/arch/linux/common/boots.h b/hardinfo2/arch/linux/common/boots.h index c95ba321..d3428ea9 100644 --- a/hardinfo2/arch/linux/common/boots.h +++ b/hardinfo2/arch/linux/common/boots.h @@ -25,7 +25,7 @@ scan_boots_real(void) scan_os(FALSE); if (!computer->os->boots) - computer->os->boots = "[Boots]\n"; + computer->os->boots = g_strdup("[Boots]\n"); else return; @@ -48,7 +48,7 @@ scan_boots_real(void) } tmp = g_strsplit(buffer, " ", 5); - computer->os->boots = g_strdup_printf("%s\n%s=Kernel %s", + computer->os->boots = h_strdup_cprintf("\n%s=Kernel %s", computer->os->boots, tmp[4], tmp[3]); -- cgit v1.2.3