In as_check_common_config, we were calling ast_std_free on
raw_key but raw_key was allocated with ast_malloc so it
should be freed with ast_free.
Resolves: #636
(cherry picked from commit
1b94c905245840bdfa13330e0f3c1e441d6127f5)
if (!ast_strlen_zero(acfg_common->private_key_file)) {
EVP_PKEY *private_key;
- RAII_VAR(unsigned char *, raw_key, NULL, ast_std_free);
+ RAII_VAR(unsigned char *, raw_key, NULL, ast_free);
private_key = crypto_load_privkey_from_file(acfg_common->private_key_file);
if (!private_key) {