diff options
-rw-r--r-- | fb-helper.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/fb-helper.c b/fb-helper.c index 03c200c..56e33c3 100644 --- a/fb-helper.c +++ b/fb-helper.c @@ -206,7 +206,7 @@ int progress_callback( int main(int argc, char *argv[]) { - CURL *curl; + CURL *curl = NULL; CURLcode res; struct curl_httppost *formpost = NULL; @@ -343,7 +343,8 @@ int main(int argc, char *argv[]) } cleanup: - curl_easy_cleanup(curl); + if (curl) + curl_easy_cleanup(curl); if (formpost) curl_formfree(formpost); |