X-Git-Url: http://erislabs.net/gitweb/?a=blobdiff_plain;ds=sidebyside;f=lib%2Frelocatable.h;h=5dfd71083e5541551f9f3c9d5c270daa78984bab;hb=217969cf220de4c0515eccd614de1640c3f46bcf;hp=8f1e2aa1b6b377dcf03817680c1c469179169fe2;hpb=619c189e199adf139ed298d1852e92987eb6289f;p=gnulib.git diff --git a/lib/relocatable.h b/lib/relocatable.h index 8f1e2aa1b..5dfd71083 100644 --- a/lib/relocatable.h +++ b/lib/relocatable.h @@ -54,9 +54,9 @@ extern RELOCATABLE_DLL_EXPORTED void string that you can free with free() after casting it to 'char *'. */ extern const char * relocate (const char *pathname); -/* Memory management: relocate() leaks memory, because it has to construct - a fresh pathname. If this is a problem because your program calls - relocate() frequently, think about caching the result. Or free the +/* Memory management: relocate() potentially allocates memory, because it has + to construct a fresh pathname. If this is a problem because your program + calls relocate() frequently, think about caching the result. Or free the return value if it was different from the argument pathname. */ /* Convenience function: