mirror of
https://github.com/moparisthebest/curl
synced 2024-08-13 17:03:50 -04:00
If CURLDEBUG is set we use the libcurl internal memdebug system to track
memory leaks etc.
This commit is contained in:
parent
dc659ec736
commit
59091fa860
@ -143,3 +143,11 @@ void ares__send_query(ares_channel channel, struct query *query, time_t now);
|
|||||||
void ares__close_sockets(struct server_state *server);
|
void ares__close_sockets(struct server_state *server);
|
||||||
int ares__get_hostent(FILE *fp, struct hostent **host);
|
int ares__get_hostent(FILE *fp, struct hostent **host);
|
||||||
int ares__read_line(FILE *fp, char **buf, int *bufsize);
|
int ares__read_line(FILE *fp, char **buf, int *bufsize);
|
||||||
|
|
||||||
|
#ifdef CURLDEBUG
|
||||||
|
/* This is low-level hard-hacking memory leak tracking and similar. Using the
|
||||||
|
libcurl lowlevel code from within library is ugly and only works when
|
||||||
|
c-ares is built and linked with a similarly debug-build libcurl, but we do
|
||||||
|
this anyway for convenience. */
|
||||||
|
#include "../lib/memdebug.h"
|
||||||
|
#endif
|
||||||
|
Loading…
Reference in New Issue
Block a user