Browse code

core: free params list at end on error state inside parse_addr_spec

(cherry picked from commit f2b133e24e29f9f0ce7ba568a5d4564c7b0f8f31)
(cherry picked from commit b44879a17af848c3acb5524fe1058854c59c95fd)
(cherry picked from commit d8ef550a4e7181f7fce1a4982c5da10b6ae6e8a7)

Daniel-Constantin Mierla authored on 16/09/2021 06:08:18 • Henning Westerholt committed on 22/10/2021 12:13:03
Showing 1 changed files
... ...
@@ -896,6 +896,9 @@ endofheader:
896 896
 					status);
897 897
 			goto error;
898 898
 	}
899
+	if(to_b->error == PARSE_ERROR) {
900
+		free_to_params(to_b);
901
+	}
899 902
 	return tmp;
900 903
 
901 904
 error: