diff --git a/src/mkhelp.pl b/src/mkhelp.pl
index 7d9e792ac3..63d59e89f6 100755
--- a/src/mkhelp.pl
+++ b/src/mkhelp.pl
@@ -72,7 +72,7 @@ if($c)
print <
-#include "memdebug.h" /* keep this as LAST include */
+#include /* keep this as LAST include */
static const unsigned char hugehelpgz[] = {
/* This mumbo-jumbo is the huge help text compressed with gzip.
Thanks to this operation, the size of this data shrank from $gzip
diff --git a/src/slist_wc.c b/src/slist_wc.c
index 7f1e8f19be..41c944d94b 100644
--- a/src/slist_wc.c
+++ b/src/slist_wc.c
@@ -29,7 +29,7 @@
#include "slist_wc.h"
/* The last #include files should be: */
-#include "memdebug.h"
+#include
/*
* slist_wc_append() appends a string to the linked list. This function can be
diff --git a/src/tool_bname.c b/src/tool_bname.c
index 4ba1a3b8ee..62dbcf2ed5 100644
--- a/src/tool_bname.c
+++ b/src/tool_bname.c
@@ -25,7 +25,7 @@
#include "tool_bname.h"
-#include "memdebug.h" /* keep this as LAST include */
+#include /* keep this as LAST include */
#ifndef HAVE_BASENAME
diff --git a/src/tool_findfile.c b/src/tool_findfile.c
index d16a83899b..02bdefea87 100644
--- a/src/tool_findfile.c
+++ b/src/tool_findfile.c
@@ -41,7 +41,7 @@
#include "tool_findfile.h"
#include "tool_cfgable.h"
-#include "memdebug.h" /* keep this as LAST include */
+#include /* keep this as LAST include */
struct finder {
const char *env;
diff --git a/src/tool_getpass.c b/src/tool_getpass.c
index eea46fb526..bb0692083d 100644
--- a/src/tool_getpass.c
+++ b/src/tool_getpass.c
@@ -55,7 +55,7 @@
#endif
#include "tool_getpass.h"
-#include "memdebug.h" /* keep this as LAST include */
+#include /* keep this as LAST include */
#ifdef __VMS
/* VMS implementation */
diff --git a/src/tool_operate.c b/src/tool_operate.c
index 473ed891b4..64b88e9744 100644
--- a/src/tool_operate.c
+++ b/src/tool_operate.c
@@ -97,7 +97,7 @@
CURL_EXTERN CURLcode curl_easy_perform_ev(CURL *easy);
#endif
-#include "memdebug.h" /* keep this as LAST include */
+#include /* keep this as LAST include */
#ifdef CURL_CA_EMBED
#ifndef CURL_DECLARED_CURL_CA_EMBED
diff --git a/src/tool_sleep.c b/src/tool_sleep.c
index b1d14a177a..e10584a7eb 100644
--- a/src/tool_sleep.c
+++ b/src/tool_sleep.c
@@ -41,7 +41,7 @@
#include "tool_sleep.h"
-#include "memdebug.h" /* keep this as LAST include */
+#include /* keep this as LAST include */
void tool_go_sleep(long ms)
{
diff --git a/src/tool_stderr.c b/src/tool_stderr.c
index 602da613a0..1285f04a8e 100644
--- a/src/tool_stderr.c
+++ b/src/tool_stderr.c
@@ -26,7 +26,7 @@
#include "tool_stderr.h"
#include "tool_msgs.h"
-#include "memdebug.h" /* keep this as LAST include */
+#include /* keep this as LAST include */
FILE *tool_stderr;
diff --git a/src/tool_xattr.c b/src/tool_xattr.c
index 299d582078..c0c1b2a99d 100644
--- a/src/tool_xattr.c
+++ b/src/tool_xattr.c
@@ -24,7 +24,7 @@
#include "tool_setup.h"
#include "tool_xattr.h"
-#include "memdebug.h" /* keep this as LAST include */
+#include /* keep this as LAST include */
#ifdef USE_XATTR