fix logic bug and memory leak in new code

This commit is contained in:
Anthony Minessale 2010-07-13 17:27:37 -05:00 committed by Jeff Lenk
parent 2d30a8c286
commit cad1d49d6b
1 changed files with 2 additions and 0 deletions

View File

@ -782,6 +782,7 @@ static void *SWITCH_THREAD_FUNC ringall_thread_run(switch_thread_t *thread, void
q = node->fifo_list[x];
if (fifo_queue_pop_nameval(q, "variable_fifo_vip", "true", &pop_dup, SWITCH_FALSE) == SWITCH_STATUS_SUCCESS && pop_dup) {
pop = pop_dup;
break;
}
}
@ -790,6 +791,7 @@ static void *SWITCH_THREAD_FUNC ringall_thread_run(switch_thread_t *thread, void
q = node->fifo_list[x];
if (fifo_queue_pop(node->fifo_list[x], &pop_dup, SWITCH_FALSE) == SWITCH_STATUS_SUCCESS && pop_dup) {
pop = pop_dup;
break;
}
}
}