From 28e1acfeba566b42a213307499d9ec2a80c216f8 Mon Sep 17 00:00:00 2001
From: Grigori Goronzy <greg@blackbox>
Date: Wed, 23 Feb 2011 00:55:48 +0000
Subject: [PATCH] libaegisub: do not free string returned by getenv()

getenv() returns a string that is part of internal process data and
should never be modified and/or free()'d.

Originally committed to SVN as r5368.
---
 aegisub/libaegisub/unix/path.cpp | 1 -
 1 file changed, 1 deletion(-)

diff --git a/aegisub/libaegisub/unix/path.cpp b/aegisub/libaegisub/unix/path.cpp
index c402bd039..8f9a6a7fe 100644
--- a/aegisub/libaegisub/unix/path.cpp
+++ b/aegisub/libaegisub/unix/path.cpp
@@ -42,7 +42,6 @@ const std::string home() {
 		exit(1);
 	}
 	std::string home(ehome);
-	free(ehome);
 	return home;
 }
 
-- 
GitLab