From: Eric Blake Date: Thu, 10 Jan 2008 23:36:17 +0000 (+0100) Subject: Fix a comment. X-Git-Tag: v0.1~7851 X-Git-Url: http://erislabs.net/gitweb/?a=commitdiff_plain;h=4de3b7f8a666cbbebcb63ef90027ee2988d146bb;p=gnulib.git Fix a comment. --- diff --git a/ChangeLog b/ChangeLog index 7c7c88553..d50d64942 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,9 @@ 2008-01-10 Eric Blake + * lib/relocatable.h: Fix a comment. + +2008-01-10 Eric Blake + Share two-way algorithm. * lib/str-two-way.h: New file, merged from... * lib/memmem.c: ...here... 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: