]> git.ipfire.org Git - thirdparty/curl.git/commit
tool_operate: fix memory mixups
authorDaniel Stenberg <daniel@haxx.se>
Wed, 27 Sep 2023 07:51:46 +0000 (09:51 +0200)
committerDaniel Stenberg <daniel@haxx.se>
Thu, 28 Sep 2023 07:24:57 +0000 (09:24 +0200)
commit93885cf3a8d4eb3e98cde8e73a56dda87c8dd69c
tree7080b04883fad719fc46a0c069415359890de2df
parenta7f8d04ee02ea3feda590810de97ecb164c5256a
tool_operate: fix memory mixups

Switch to plain getenv() from curl_getenv() to avoid the allocation and
having to keep track of which free() or curl_free() that need to be
used.

Coverity found issues and a memory leak.

Follow-up to 65b563a96a226649ba12cb1e

Closes #11959
src/tool_operate.c