summaryrefslogtreecommitdiffstats
path: root/mdoc_state.c
diff options
context:
space:
mode:
authorIngo Schwarze <schwarze@openbsd.org>2022-04-14 16:43:43 +0000
committerIngo Schwarze <schwarze@openbsd.org>2022-04-14 16:43:43 +0000
commitbddcaddd71aa306d9c5a606bc7ece6e2812925c5 (patch)
treecacfd28f1b6b5861bfa32dfeb9551fabcb76bf3c /mdoc_state.c
parent525559c24a4e02693f443d611b8920564a497f85 (diff)
downloadmandoc-bddcaddd71aa306d9c5a606bc7ece6e2812925c5.tar.gz
support for hunting memory leaks;
designed and written last autumn, polished today
Diffstat (limited to 'mdoc_state.c')
-rw-r--r--mdoc_state.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/mdoc_state.c b/mdoc_state.c
index 206d526f..eca7a0d4 100644
--- a/mdoc_state.c
+++ b/mdoc_state.c
@@ -1,6 +1,6 @@
/* $Id$ */
/*
- * Copyright (c) 2014, 2015, 2017 Ingo Schwarze <schwarze@openbsd.org>
+ * Copyright (c) 2014, 2015, 2017, 2021 Ingo Schwarze <schwarze@openbsd.org>
*
* Permission to use, copy, modify, and distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
@@ -23,6 +23,9 @@
#include <stdlib.h>
#include <string.h>
+#if DEBUG_MEMORY
+#include "mandoc_dbg.h"
+#endif
#include "mandoc.h"
#include "roff.h"
#include "mdoc.h"