提交 e0054af9 authored 作者: William King's avatar William King

Fixing a use after free

上级 3fce1aae
......@@ -3125,10 +3125,10 @@ SWITCH_DECLARE(switch_status_t) switch_live_array_clear(switch_live_array_t *la)
while(np) {
cur = np;
np = np->next;
cJSON_Delete(cur->obj);
free(cur->name);
free(cur);
np = np->next;
}
la->head = la->tail = NULL;
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论