diff options
author | Gunter Knauf <gk@gknw.de> | 2009-07-25 04:16:00 +0000 |
---|---|---|
committer | Gunter Knauf <gk@gknw.de> | 2009-07-25 04:16:00 +0000 |
commit | 7dc48e57a6f4d4843c6d1bc2f611368d30aae295 (patch) | |
tree | d82958b5221a4b9ac7403d3420d3c0d55dba4d3e | |
parent | 8570883412c390dba12ab127fc79079b964242b4 (diff) |
blocked new stuff with HAVE_LIBSSH2_KNOWNHOST_API to check if this is our current memory leak.
-rw-r--r-- | src/main.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/main.c b/src/main.c index aeaa58831..405ee3854 100644 --- a/src/main.c +++ b/src/main.c @@ -4694,16 +4694,19 @@ operate(struct Configurable *config, int argc, argv_item_t argv[]) my_setopt(curl, CURLOPT_SSL_VERIFYPEER, FALSE); my_setopt(curl, CURLOPT_SSL_VERIFYHOST, 1); } +#ifdef HAVE_LIBSSH2_KNOWNHOST_API else { char *home = homedir(); char *file = aprintf("%s/%sssh/known_hosts", home, DOT_CHAR); if(home && file) { free(home); my_setopt_str(curl, CURLOPT_SSH_KNOWNHOSTS, file); + /* XXX do we need to free file here? */ } else return CURLE_OUT_OF_MEMORY; } +#endif if(config->no_body || config->remote_time) { /* no body or use remote time */ |