core: free params list at end on error state inside parse_addr_spec
authorDaniel-Constantin Mierla <miconda@gmail.com>
Thu, 16 Sep 2021 06:08:18 +0000 (08:08 +0200)
committerDaniel-Constantin Mierla <miconda@gmail.com>
Thu, 16 Sep 2021 06:08:18 +0000 (08:08 +0200)
src/core/parser/parse_addr_spec.c

index 99138dc..1ff5a16 100644 (file)
@@ -896,6 +896,9 @@ endofheader:
                                        status);
                        goto error;
        }
+       if(to_b->error == PARSE_ERROR) {
+               free_to_params(to_b);
+       }
        return tmp;
 
 error: