aboutsummaryrefslogtreecommitdiff
path: root/hardinfo2/arch/common/environment.h
diff options
context:
space:
mode:
authorLeandro A. F. Pereira <leandro@hardinfo.org>2009-08-02 21:09:06 -0300
committerLeandro A. F. Pereira <leandro@hardinfo.org>2009-08-02 21:09:06 -0300
commit0789ccac0df02846ffa618b9164e0f5bc2acd06e (patch)
treefdda6a1a6f6ed555982c89953a31b81c0cc522e9 /hardinfo2/arch/common/environment.h
parent5fdd50148ec9e379b49876c96e9c10c84f81c2e0 (diff)
Fix crash (double free)
Diffstat (limited to 'hardinfo2/arch/common/environment.h')
-rw-r--r--hardinfo2/arch/common/environment.h2
1 files changed, 1 insertions, 1 deletions
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);
}