]> granicus.if.org Git - curl/commit
win32: fix a potential memory leak in Curl_load_library
authorMartin Vejnár <martin.vejnar@avg.com>
Mon, 1 Aug 2016 08:18:55 +0000 (10:18 +0200)
committerDaniel Stenberg <daniel@haxx.se>
Mon, 1 Aug 2016 08:43:10 +0000 (10:43 +0200)
commit608b11a91f4e994d26f99baf4dd0a7dff03578ab
tree90cb4728c80f29159ecda28fb5183b9ca543895e
parentd6604524ad24daf4581efbe0020da058d2b3af84
win32: fix a potential memory leak in Curl_load_library

If a call to GetSystemDirectory fails, the `path` pointer that was
previously allocated would be leaked. This makes sure that `path` is
always freed.

Closes #938
lib/system_win32.c