... | ... |
@@ -2141,7 +2141,7 @@ inline static int ac_addspecial_add_alt_node(const char *subexpr, uint8_t sigopt |
2141 | 2141 |
|
2142 | 2142 |
s = cli_mpool_hex2ui(root->mempool, subexpr); |
2143 | 2143 |
if (!s) { |
2144 |
- free(newnode); |
|
2144 |
+ mpool_free(root->mempool, newnode); |
|
2145 | 2145 |
return CL_EMALFDB; |
2146 | 2146 |
} |
2147 | 2147 |
|