Commit
424be345639d75c6cb7d0bd2da5f0f407dbd0bd5 introduced
a regression by calling ast_free on memory allocated by
realpath. This causes Asterisk to abort when executing this
function. Since the memory is allocated by glibc, it should
be freed using ast_std_free.
Resolves: #513
{
char *stripped_filename;
RAII_VAR(char *, path, NULL, ast_free);
- RAII_VAR(char *, real_path, NULL, ast_free);
+ RAII_VAR(char *, real_path, NULL, ast_std_free);
if (live_dangerously) {
return 0;