Mercurial > hg > octave-nkf > gnulib-hg
changeset 9602:7a4db0f92545
Fix a comment.
author | Eric Blake <ebb9@byu.net> |
---|---|
date | Fri, 11 Jan 2008 00:36:17 +0100 |
parents | fbf94c8a908a |
children | 7f9da67a609a |
files | ChangeLog lib/relocatable.h |
diffstat | 2 files changed, 7 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +2008-01-10 Eric Blake <ebb9@byu.net> + + * lib/relocatable.h: Fix a comment. + 2008-01-10 Eric Blake <ebb9@byu.net> Share two-way algorithm.
--- a/lib/relocatable.h +++ b/lib/relocatable.h @@ -54,9 +54,9 @@ 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: