diff --git a/src/method.c b/src/method.c index 57be82ec..11a12195 100644 --- a/src/method.c +++ b/src/method.c @@ -163,8 +163,7 @@ flickcurl_build_method(flickcurl* fc, xmlXPathContextPtr xpathCtx) tidy: if(fc->failed) { - if(method) - flickcurl_free_method(method); + flickcurl_free_method(method); method = NULL; }