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
1 changed files with 0 additions and 1 deletions

View File

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