mirror of
https://github.com/moparisthebest/curl
synced 2024-11-15 14:05:03 -05:00
2873971d62
The result of a memory allocation should always be checked, as we may run under memory pressure where even a small allocation can fail. This adds checking and error handling to a few cases where the allocation wasn't checked for success. In the ftp case, the freeing of the path variable is moved ahead of the allocation since there is little point in keeping it around across the strdup, and the separation makes for more readable code. In nwlib, the lock is aslo freed in the error path. Also bumps the copyright years on affected files. Closes #3084 Reviewed-by: Jay Satiro <raysatiro@yahoo.com> Reviewed-by: Daniel Stenberg <daniel@haxx.se> |
||
---|---|---|
.. | ||
cleartext.c | ||
cram.c | ||
digest_sspi.c | ||
digest.c | ||
digest.h | ||
krb5_gssapi.c | ||
krb5_sspi.c | ||
ntlm_sspi.c | ||
ntlm.c | ||
ntlm.h | ||
oauth2.c | ||
spnego_gssapi.c | ||
spnego_sspi.c | ||
vauth.c | ||
vauth.h |