]> git.ipfire.org Git - thirdparty/curl.git/commit
memdebug: log pointer before freeing its data
authorDaniel Stenberg <daniel@haxx.se>
Tue, 12 Mar 2019 07:37:18 +0000 (08:37 +0100)
committerDaniel Stenberg <daniel@haxx.se>
Tue, 12 Mar 2019 20:45:03 +0000 (21:45 +0100)
commit401cb929543e3370726574c01fd90d965c5b3c60
tree9a25e32ccdc5b70f4915d1ca4f6e246fb9dc5ef6
parent7e68fed88ba6be7d46df8e45d698b6c2053f8fee
memdebug: log pointer before freeing its data

Coverity warned for two potentional "Use after free" cases. Both are false
positives because the memory wasn't used, it was only the actual pointer
value that was logged.

The fix still changes the order of execution to avoid the warnings.

Coverity CID 1443033 and 1443034

Closes #3671
lib/curl_addrinfo.c
lib/memdebug.c