]> Savannah Git Hosting - gnulib.git/commit
relocate: Make it easier to reclaim allocated memory.
authorBruno Haible <bruno@clisp.org>
Tue, 16 May 2017 18:57:23 +0000 (20:57 +0200)
committerBruno Haible <bruno@clisp.org>
Tue, 16 May 2017 18:57:23 +0000 (20:57 +0200)
commit3a285f29fbdb5761174bf22b6390932bfab03fad
treec8dcecaa4a443109afe62186adaef6f1699b98bc
parent88fdf7f84a0b5965eb23a9ea8a24975cf4a06e1f
relocate: Make it easier to reclaim allocated memory.

* lib/relocatable.h (relocate2): New declaration/macro.
* lib/relocatable.c (relocate2): New function.
* doc/relocatable-maint.texi (Supporting Relocation): Mention the
relocate2 function.
* lib/localcharset.c (relocate2): Define fallback.
(get_charset_aliases): Invoke relocate2 instead of relocate. Free the
allocated memory.
* lib/javaversion.c (relocate2): Define fallback.
(javaexec_version): Invoke relocate2 instead of relocate. Free the
allocated memory.
ChangeLog
doc/relocatable-maint.texi
lib/javaversion.c
lib/localcharset.c
lib/relocatable.c
lib/relocatable.h