* lib/relocatable.h: Include <stdlib.h>.
(compute_curr_prefix): Declare that deallocation must happen through
'free'.
+2021-08-07 Bruno Haible <bruno@clisp.org>
+
+ relocatable-lib-lgpl: Improve GCC 11 allocation-deallocation checking.
+ * lib/relocatable.h: Include <stdlib.h>.
+ (compute_curr_prefix): Declare that deallocation must happen through
+ 'free'.
+
2021-08-07 Bruno Haible <bruno@clisp.org>
regex-quote: Improve GCC 11 allocation-deallocation checking.
#ifndef _RELOCATABLE_H
#define _RELOCATABLE_H
+#include <stdlib.h>
+
#ifdef __cplusplus
extern "C" {
#endif
Returns it, freshly allocated. Returns NULL upon failure. */
extern char * compute_curr_prefix (const char *orig_installprefix,
const char *orig_installdir,
- const char *curr_pathname);
+ const char *curr_pathname)
+ _GL_ATTRIBUTE_MALLOC _GL_ATTRIBUTE_DEALLOC_FREE;
#else