fix double free in malloc failure handling code path

This commit is contained in:
Nedko Arnaudov 2012-11-17 14:48:48 +02:00
parent 88aaa609e2
commit c2fc519d5c
1 changed files with 2 additions and 2 deletions

View File

@ -2,7 +2,7 @@
/*
* 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
@ -135,7 +135,7 @@ bool ladish_command_create_room(void * call_ptr, struct ladish_cqueue * queue_pt
fail_destroy_command:
free(cmd_ptr);
fail_free_template_name:
free(room_name_dup);
free(template_name_dup);
fail_free_room_name:
free(room_name_dup);
fail: