diff options
author | Dan Fandrich <dan@coneharvesters.com> | 2010-06-17 10:56:25 -0700 |
---|---|---|
committer | Dan Fandrich <dan@coneharvesters.com> | 2010-06-17 10:56:25 -0700 |
commit | bd6a695545966b05a99eb7eac74bb20715ead8dd (patch) | |
tree | 979036ee1e9b05b307d2c6960e0082ca83c9d39f /lib | |
parent | d63bdba0977a3d680138a89d46015d1ef690f5cd (diff) |
Fixed an OOM memory leak in the FTP wildcard code
Diffstat (limited to 'lib')
-rw-r--r-- | lib/ftp.c | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -3526,8 +3526,10 @@ static CURLcode init_wc_data(struct connectdata *conn) /* INITIALIZE parselist structure */ ftp_tmp->parser = Curl_ftp_parselist_data_alloc(); - if(!ftp_tmp->parser) + if(!ftp_tmp->parser) { + free(ftp_tmp); return CURLE_OUT_OF_MEMORY; + } wildcard->tmp = ftp_tmp; /* put it to the WildcardData tmp pointer */ wildcard->tmp_dtor = wc_data_dtor; |