Skip to content

Commit

Permalink
(flickcurl_build_method): Remove if(method) check around cleanup
Browse files Browse the repository at this point in the history
[coverity CID 56697]
  • Loading branch information
dajobe committed Jun 1, 2014
1 parent 49dbfbf commit 4a11e88
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/method.c
Expand Up @@ -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;
}

Expand Down

0 comments on commit 4a11e88

Please sign in to comment.