commit | 6d8a68914ea460b06cda2a1b657d7a436588c9ad | [log] [tgz] |
---|---|---|
author | Willy Tarreau <w@1wt.eu> | Mon Nov 02 19:26:02 2020 +0100 |
committer | Willy Tarreau <w@1wt.eu> | Thu Nov 05 19:27:09 2020 +0100 |
tree | 8425273ff40f1c11952aa7aca9c24d1c3e2666b7 | |
parent | 9b5c8bbc89541bee761e4c9eb9f8c5ba18c8a7b9 [diff] |
MINOR: pattern: make the delete and prune functions more generic Now we have a single prune() function to act on an expression, and one delete function for the lists and one for the trees. The presence of a pointer in the lists is enough to warrant a free, and we rely on the PAT_SF_REGFREE flag to decide whether to free using free() or regfree().