forked from mia/Aegisub
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:
parent
066ec3014a
commit
28e1acfeba
1 changed files with 0 additions and 1 deletions
|
@ -42,7 +42,6 @@ const std::string home() {
|
|||
exit(1);
|
||||
}
|
||||
std::string home(ehome);
|
||||
free(ehome);
|
||||
return home;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue