mirror of
https://github.com/curl/curl.git
synced 2026-07-29 22:38:05 +03:00
MemoryTracking: adjust initialization calling
Calling of curl_memdebug() was still done with a pending free()
This commit is contained in:
parent
2d7c79af76
commit
aaab5fa299
4 changed files with 61 additions and 42 deletions
|
|
@ -119,7 +119,7 @@ static long memsize = 0; /* set number of mallocs allowed */
|
|||
void curl_memdebug(const char *logname)
|
||||
{
|
||||
if(!logfile) {
|
||||
if(logname)
|
||||
if(logname && *logname)
|
||||
logfile = fopen(logname, "w");
|
||||
else
|
||||
logfile = stderr;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue