maint: improve -fanalyzer malloc checking
* lib/backup-internal.h, lib/backupfile.h:
+ * lib/canonicalize.h:
Add malloc-related attributes and include stdlib.h as needed.
2021-08-01 Jim Meyering <meyering@fb.com>
Whether components must exist or not depends on canonicalize mode.
The result is malloc'd.
Upon failure, return NULL with errno set. */
-char *canonicalize_filename_mode (const char *, canonicalize_mode_t);
+char *canonicalize_filename_mode (const char *, canonicalize_mode_t)
+ _GL_ATTRIBUTE_MALLOC _GL_ATTRIBUTE_DEALLOC_FREE;
#ifdef __cplusplus
}