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
54464321a86e83d9581e5584fa3adc82994e8331)
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) {