mirror of
https://github.com/moparisthebest/curl
synced 2024-12-21 07:38:49 -05:00
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.
This commit is contained in:
parent
91025d1dd6
commit
34af02caca
@ -94,8 +94,8 @@ char *getpass_r(const char *prompt, char *buffer, size_t buflen)
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
/* The last #include file should be: */
|
/* The last #include file should be: */
|
||||||
#ifdef CURLDEBUG
|
#if defined(CURLDEBUG) && defined(CURLTOOLDEBUG)
|
||||||
#include "../lib/memdebug.h"
|
#include "memdebug.h"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
char *getpass_r(const char *prompt, char *buffer, size_t buflen)
|
char *getpass_r(const char *prompt, char *buffer, size_t buflen)
|
||||||
|
@ -42,8 +42,8 @@
|
|||||||
|
|
||||||
#include "homedir.h"
|
#include "homedir.h"
|
||||||
|
|
||||||
#ifdef CURLDEBUG
|
#if defined(CURLDEBUG) && defined(CURLTOOLDEBUG)
|
||||||
#include "../lib/memdebug.h"
|
#include "memdebug.h"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
static
|
static
|
||||||
|
@ -107,6 +107,9 @@
|
|||||||
|
|
||||||
/* The last #include file should be: */
|
/* The last #include file should be: */
|
||||||
#ifdef CURLDEBUG
|
#ifdef CURLDEBUG
|
||||||
|
#ifndef CURLTOOLDEBUG
|
||||||
|
#define MEMDEBUG_NODEFINES
|
||||||
|
#endif
|
||||||
/* This is low-level hard-hacking memory leak tracking and similar. Using
|
/* 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
|
the library level code from this client-side is ugly, but we do this
|
||||||
anyway for convenience. */
|
anyway for convenience. */
|
||||||
|
@ -35,9 +35,8 @@
|
|||||||
|
|
||||||
#include "urlglob.h"
|
#include "urlglob.h"
|
||||||
|
|
||||||
|
#if defined(CURLDEBUG) && defined(CURLTOOLDEBUG)
|
||||||
#ifdef CURLDEBUG
|
#include "memdebug.h"
|
||||||
#include "../lib/memdebug.h"
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
typedef enum {
|
typedef enum {
|
||||||
|
Loading…
Reference in New Issue
Block a user