From 4de3b7f8a666cbbebcb63ef90027ee2988d146bb Mon Sep 17 00:00:00 2001 From: Eric Blake Date: Fri, 11 Jan 2008 00:36:17 +0100 Subject: [PATCH] Fix a comment. --- ChangeLog | 4 ++++ lib/relocatable.h | 6 +++--- 2 files changed, 7 insertions(+), 3 deletions(-) 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: -- 2.11.0