Commit 0f8facb4 authored by Daniel Stenberg's avatar Daniel Stenberg
Browse files

added memory debugging include file

parent d49d05bc
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -38,6 +38,11 @@
#include <string.h>
#include "base64.h"

/* The last #include file should be: */
#ifdef MALLOCDEBUG
#include "memdebug.h"
#endif

static char base64[] = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";

static int pos(char c)
+6 −0
Original line number Diff line number Diff line
@@ -65,6 +65,11 @@ Example set of cookies:
#include "getdate.h"
#include "strequal.h"

/* The last #include file should be: */
#ifdef MALLOCDEBUG
#include "memdebug.h"
#endif

/****************************************************************************
 *
 * cookie_add()
@@ -496,6 +501,7 @@ void cookie_cleanup(struct CookieInfo *c)
	 free(co);
	 co = next;
      }
      free(c); /* free the base struct as well */
   }
}
+5 −0
Original line number Diff line number Diff line
@@ -48,6 +48,11 @@
#include <stdlib.h>
#include <string.h>

/* The last #include file should be: */
#ifdef MALLOCDEBUG
#include "memdebug.h"
#endif

char *curl_escape(char *string)
{
   int alloc=strlen(string)+1;
+5 −0
Original line number Diff line number Diff line
@@ -63,6 +63,11 @@

#include "strequal.h"

/* The last #include file should be: */
#ifdef MALLOCDEBUG
#include "memdebug.h"
#endif

/* Length of the random boundary string. The risk of this being used
   in binary data is very close to zero, 64^32 makes
   6277101735386680763835789423207666416102355444464034512896
+5 −1
Original line number Diff line number Diff line
@@ -89,6 +89,10 @@
#ifdef KRB4
#include "security.h"
#endif
/* The last #include file should be: */
#ifdef MALLOCDEBUG
#include "memdebug.h"
#endif

/* returns last node in linked list */
static struct curl_slist *slist_get_last(struct curl_slist *list)
@@ -1178,7 +1182,7 @@ CURLcode _ftp(struct connectdata *conn)
    else {
      /* Set type to binary (unless specified ASCII) */
      ftpsendf(data->firstsocket, conn, "TYPE %s",
            (data->bits.ftp_list_only)?"A":"I");
               (data->bits.ftp_ascii)?"A":"I");

      nread = GetLastResponse(data->firstsocket, buf, conn);
      if(nread < 0)
Loading