fix double error message on display api

This commit is contained in:
Brian West 2010-05-12 22:18:48 -05:00
parent 848a4a6909
commit c6c479f028
1 changed files with 3 additions and 0 deletions

View File

@ -2302,6 +2302,7 @@ SWITCH_STANDARD_API(uuid_display_function)
if (zstr(cmd) || argc < 2 || zstr(argv[0]) || zstr(argv[1])) {
stream->write_function(stream, "-USAGE: %s\n", DISPLAY_SYNTAX);
goto end;
} else {
switch_core_session_message_t msg = { 0 };
switch_core_session_t *lsession = NULL;
@ -2322,6 +2323,8 @@ SWITCH_STANDARD_API(uuid_display_function)
stream->write_function(stream, "-ERR Operation Failed\n");
}
end:
switch_safe_free(mycmd);
return SWITCH_STATUS_SUCCESS;
}