This is the mail archive of the cygwin-patches mailing list for the Cygwin project.
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |
Other format: | [Raw text] |
But doesn't the program then have a pointer to memory that has been freed? That pointer can also be accessed after forks.
Isn't that always a possibility? You can't rely on the persistence of the stuff returned from getenv().
See also http://developer.apple.com/documentation/Darwin/Reference/Manpages/man3/getenv.3.html which says that the environment semantics make it inherently leaky. That's why I didn't hesitate calling cmalloc
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |