Skip to content

Commit

Permalink
core: free params list at end on error state inside parse_addr_spec
Browse files Browse the repository at this point in the history
  • Loading branch information
miconda committed Sep 16, 2021
1 parent d8955fc commit f2b133e
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/core/parser/parse_addr_spec.c
Expand Up @@ -896,6 +896,9 @@ char *parse_addr_spec(char *const buffer, const char *const end,
status);
goto error;
}
if(to_b->error == PARSE_ERROR) {
free_to_params(to_b);
}
return tmp;

error:
Expand Down

0 comments on commit f2b133e

Please sign in to comment.