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.
This commit is contained in:
Grigori Goronzy 2011-02-23 00:55:48 +00:00
parent 066ec3014a
commit 28e1acfeba

View file

@ -42,7 +42,6 @@ const std::string home() {
exit(1);
}
std::string home(ehome);
free(ehome);
return home;
}