Index: res/res_phoneprov.c =================================================================== --- res/res_phoneprov.c (revision 242514) +++ res/res_phoneprov.c (working copy) @@ -514,6 +514,7 @@ ast_free(file); } + http_header = ast_str_create(80); ast_str_set(&http_header, 0, "Content-type: %s\r\n", route->file->mime_type); @@ -522,6 +523,7 @@ if (tmp) { ast_free(tmp); } + ast_free(http_header); goto out500; } ast_str_append(&result, 0, "%s", ast_str_buffer(tmp));