summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorPaul Eggert <eggert@cs.ucla.edu>2021-08-01 17:44:46 -0700
committerPaul Eggert <eggert@cs.ucla.edu>2021-08-01 18:06:57 -0700
commitcc5b1eca12f7cb65350211f218ff2af98c1a6d87 (patch)
tree8a841cf81b68076094b2aa5e465d3263cabc8aa5 /lib
parent77dd75352acf3bda52918fca5c297d5611a74195 (diff)
downloadgnulib-cc5b1eca12f7cb65350211f218ff2af98c1a6d87.tar.gz
xgetcwd: improve -fanalyzer malloc checking
Diffstat (limited to 'lib')
-rw-r--r--lib/xgetcwd.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/lib/xgetcwd.h b/lib/xgetcwd.h
index 98d1d1a4fe..eca195e8ec 100644
--- a/lib/xgetcwd.h
+++ b/lib/xgetcwd.h
@@ -14,4 +14,7 @@
You should have received a copy of the GNU General Public License
along with this program. If not, see <https://www.gnu.org/licenses/>. */
-extern char *xgetcwd (void);
+#include <stdlib.h>
+
+extern char *xgetcwd (void)
+ _GL_ATTRIBUTE_MALLOC _GL_ATTRIBUTE_DEALLOC_FREE;