fix double free in malloc failure handling code path
This commit is contained in:
parent
88aaa609e2
commit
c2fc519d5c
|
@ -2,7 +2,7 @@
|
||||||
/*
|
/*
|
||||||
* LADI Session Handler (ladish)
|
* LADI Session Handler (ladish)
|
||||||
*
|
*
|
||||||
* Copyright (C) 2010,2011 Nedko Arnaudov <nedko@arnaudov.name>
|
* Copyright (C) 2010,2011,2012 Nedko Arnaudov <nedko@arnaudov.name>
|
||||||
*
|
*
|
||||||
**************************************************************************
|
**************************************************************************
|
||||||
* This file contains implementation of the "create room" command
|
* This file contains implementation of the "create room" command
|
||||||
|
@ -135,7 +135,7 @@ bool ladish_command_create_room(void * call_ptr, struct ladish_cqueue * queue_pt
|
||||||
fail_destroy_command:
|
fail_destroy_command:
|
||||||
free(cmd_ptr);
|
free(cmd_ptr);
|
||||||
fail_free_template_name:
|
fail_free_template_name:
|
||||||
free(room_name_dup);
|
free(template_name_dup);
|
||||||
fail_free_room_name:
|
fail_free_room_name:
|
||||||
free(room_name_dup);
|
free(room_name_dup);
|
||||||
fail:
|
fail:
|
||||||
|
|
Loading…
Reference in New Issue