-
-
Notifications
You must be signed in to change notification settings - Fork 6.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
src/tool_parsecfg.c:288 -- free(pathalloc) is not required in parseconfig() #4730
Comments
What command-line causes this?
|
(and the |
Just "curl.exe" w/o parameters.
Seems "pathalloc" isn't allocated from heap at this point. |
If it isn't, then it is NULL, right? Because if you can get it to be non-NULL and not allocated then I'm curious how! |
No, it is not NULL (checked in VS debugger).
I'm curious too. That's why I've created this issue instead of pull-request with fix. |
If you run it in the debugger, how about setting a break-point on the first line of the function and just single-step until that |
Yes, in line And if I add But free(home) works without assert. |
Ah, it should be a |
Reported-by: bxac on github Fixes #4730
Will work on the fix in #4731 |
I did this
mkdir build_x64_shared
cd build_x64_shared
cmake -G "Visual Studio 16 2019" -A x64 .. -DCMAKE_USE_WINSSL=ON -DCURL_WINDOWS_SSPI=ON -DCURL_STATICLIB=OFF -DCURL_STATIC_CRT=ON -DBUILD_SHARED_LIBS=ON -DBUILD_TESTING=OFF ..
cmake --build . --config Debug -- /m
I expected the following
Expecting working curl.exe, but it fires debug assertion in debug_heap.cpp:996 ( _ASSERTE(__acrt_first_block == header); )
curl/libcurl version
curl 7.68.0-DEV (Windows) libcurl/7.68.0-DEV Schannel
Release-Date: [unreleased]
Protocols: dict file ftp ftps gopher http https imap imaps ldap pop3 pop3s rtsp smtp smtps telnet tftp
Features: AsynchDNS IPv6 Kerberos Largefile NTLM SPNEGO SSL SSPI
operating system
Microsoft Windows [Version 10.0.18362.535]
The text was updated successfully, but these errors were encountered: