From 0789ccac0df02846ffa618b9164e0f5bc2acd06e Mon Sep 17 00:00:00 2001 From: "Leandro A. F. Pereira" Date: Sun, 2 Aug 2009 21:09:06 -0300 Subject: Fix crash (double free) --- hardinfo2/arch/common/environment.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hardinfo2/arch/common/environment.h b/hardinfo2/arch/common/environment.h index c78c4a73..669be6d1 100644 --- a/hardinfo2/arch/common/environment.h +++ b/hardinfo2/arch/common/environment.h @@ -38,5 +38,5 @@ void scan_env_var(gboolean reload) gchar *callback_env_var(void) { - return _env; + return g_strdup(_env); } -- cgit v1.2.3