Fix a crash that happened due to accessing free'd memory

(closes issue #12396)
Reported by: tcalosi
Patches:
      12396.patch uploaded by putnopvut (license 60)
	  Tested by: tcalosi


git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@113980 65c4cc65-6c06-0410-ace0-fbb531ad65f3
1.6.1
Mark Michelson 17 years ago
parent 88cc98ea94
commit 9bd9421c83

@ -1519,7 +1519,6 @@ static struct call_queue *find_queue_by_name_rt(const char *queuename, struct as
q->strategy = QUEUE_STRATEGY_RINGALL;
init_queue(q); /* Ensure defaults for all parameters not set explicitly. */
ao2_link(queues, q);
ast_variables_destroy(tmpvar);
}
memset(tmpbuf, 0, sizeof(tmpbuf));

Loading…
Cancel
Save