mirror of
https://github.com/signalwire/freeswitch.git
synced 2025-03-04 09:44:26 +00:00
Fix leak and remove extra \n
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@10891 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
parent
0f12bc31cc
commit
40760653a3
@ -773,7 +773,7 @@ SWITCH_STANDARD_API(limit_usage_function)
|
||||
|
||||
if (argc < 2) {
|
||||
stream->write_function(stream, "USAGE: limit_usage %s\n", LIMIT_USAGE_USAGE);
|
||||
return SWITCH_STATUS_SUCCESS;
|
||||
goto end;
|
||||
}
|
||||
|
||||
|
||||
@ -786,7 +786,10 @@ SWITCH_STANDARD_API(limit_usage_function)
|
||||
limit_execute_sql_callback(NULL, sql, sql2str_callback, &cbt);
|
||||
switch_safe_free(sql);
|
||||
|
||||
stream->write_function(stream, "%s\n", buf);
|
||||
stream->write_function(stream, "%s", buf);
|
||||
|
||||
end:
|
||||
switch_safe_free(mydata);
|
||||
return SWITCH_STATUS_SUCCESS;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user