projects
/
platform
/
upstream
/
c-ares.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
fb79871
)
If CURLDEBUG defined, call curl_memdebug() if $CARES_MEMDEBUG is set.
author
Gisle Vanem
<gvanem@broadpark.no>
Sat, 22 Jul 2006 14:51:39 +0000
(14:51 +0000)
committer
Gisle Vanem
<gvanem@broadpark.no>
Sat, 22 Jul 2006 14:51:39 +0000
(14:51 +0000)
ares_init.c
patch
|
blob
|
history
diff --git
a/ares_init.c
b/ares_init.c
index
2f320a2
..
b26a434
100644
(file)
--- a/
ares_init.c
+++ b/
ares_init.c
@@
-93,6
+93,16
@@
int ares_init_options(ares_channel *channelptr, struct ares_options *options,
struct server_state *server;
struct timeval tv;
+#ifdef CURLDEBUG
+ const char *env = getenv("CARES_MEMDEBUG");
+
+ if (env)
+ curl_memdebug(env);
+ env = getenv("CARES_MEMLIMIT");
+ if (env)
+ curl_memlimit(atoi(env));
+#endif
+
channel = malloc(sizeof(struct ares_channeldata));
if (!channel)
return ARES_ENOMEM;