Commit 34af02ca authored by Daniel Stenberg's avatar Daniel Stenberg
Browse files

Disable memdebug for the allocs done by the app, unless CURLTOOLDEBUG is

defined (which it never is atm).

Now, we can focus on making 'runtests -t [num]' work on all test cases and
we should never leak nor crash.
parent 91025d1d
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -94,8 +94,8 @@ char *getpass_r(const char *prompt, char *buffer, size_t buflen)
#endif

/* The last #include file should be: */
#ifdef CURLDEBUG
#include "../lib/memdebug.h"
#if defined(CURLDEBUG) && defined(CURLTOOLDEBUG)
#include "memdebug.h"
#endif

char *getpass_r(const char *prompt, char *buffer, size_t buflen)
+2 −2
Original line number Diff line number Diff line
@@ -42,8 +42,8 @@

#include "homedir.h"

#ifdef CURLDEBUG
#include "../lib/memdebug.h"
#if defined(CURLDEBUG) && defined(CURLTOOLDEBUG)
#include "memdebug.h"
#endif

static
+3 −0
Original line number Diff line number Diff line
@@ -107,6 +107,9 @@

/* The last #include file should be: */
#ifdef CURLDEBUG
#ifndef CURLTOOLDEBUG
#define MEMDEBUG_NODEFINES
#endif
/* This is low-level hard-hacking memory leak tracking and similar. Using
   the library level code from this client-side is ugly, but we do this
   anyway for convenience. */
+2 −3
Original line number Diff line number Diff line
@@ -35,9 +35,8 @@

#include "urlglob.h"


#ifdef CURLDEBUG
#include "../lib/memdebug.h"
#if defined(CURLDEBUG) && defined(CURLTOOLDEBUG)
#include "memdebug.h"
#endif

typedef enum {