- Review of
4d95491.
The author changed it so easysrc only initializes when --libcurl but did
not do the same for the call to easysrc cleanup.
Ref: https://github.com/bagder/curl/issues/429
}
else {
#ifndef CURL_DISABLE_LIBCURL_OPTION
- /* Initialise the libcurl source output */
- if(config->libcurl)
+ if(config->libcurl) {
+ /* Initialise the libcurl source output */
result = easysrc_init();
+ }
#endif
/* Perform the main operations */
}
#ifndef CURL_DISABLE_LIBCURL_OPTION
- /* Cleanup the libcurl source output */
- easysrc_cleanup();
+ if(config->libcurl) {
+ /* Cleanup the libcurl source output */
+ easysrc_cleanup();
- /* Dump the libcurl code if previously enabled */
- dumpeasysrc(config);
+ /* Dump the libcurl code if previously enabled */
+ dumpeasysrc(config);
+ }
#endif
}
else