Skip to content

Commit

Permalink
cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
dimkr committed May 1, 2023
1 parent 97f5b71 commit 849db38
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions gplaces.c
Original file line number Diff line number Diff line change
Expand Up @@ -1239,7 +1239,7 @@ static SelectorList download_text(const Selector *sel, URL *url, int ask, int ha
SelectorList list = SIMPLEQ_HEAD_INITIALIZER(list);
Parser parser = NULL;
Selector *it;
char *mime, *p = NULL, *start, *end;
char *mime, *start, *end;
void *c = NULL;
size_t parsed, length = 0, total = 0, prog = 0;
int received, pre = 0, width, ok = 0, links = 0;
Expand Down Expand Up @@ -1276,7 +1276,6 @@ static SelectorList download_text(const Selector *sel, URL *url, int ask, int ha
}

out:
free(p);
if (c != NULL) url->proto->close(c);
if (!ok) { free_selectors(&list); SIMPLEQ_INIT(&list); }
return list;
Expand Down

0 comments on commit 849db38

Please sign in to comment.