diff options
author | Leandro A. F. Pereira <leandro@hardinfo.org> | 2007-07-05 19:21:21 +0000 |
---|---|---|
committer | Leandro A. F. Pereira <leandro@hardinfo.org> | 2007-07-05 19:21:21 +0000 |
commit | cdc40b11f4d7a3050bda164b2d92afc23616b7f9 (patch) | |
tree | 03cd201e20016a39a60e875e591b1d969d68f425 /hardinfo2/arch/linux/common/boots.h | |
parent | ed4d0b93832732a199f4fb07c70350401f2eaceb (diff) |
Cleanups. Plug most of the memleaks.
Diffstat (limited to 'hardinfo2/arch/linux/common/boots.h')
-rw-r--r-- | hardinfo2/arch/linux/common/boots.h | 4 |
1 files changed, 2 insertions, 2 deletions
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]); |