mirror of
https://github.com/signalwire/freeswitch.git
synced 2025-02-04 18:27:36 +00:00
switch_cpp: fix leak (FSCORE-394)
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@14097 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
parent
d2120b694c
commit
41e7977c36
@ -180,6 +180,7 @@ SWITCH_DECLARE(const char *) API::execute(const char *cmd, const char *arg)
|
||||
this_check("");
|
||||
SWITCH_STANDARD_STREAM(stream);
|
||||
switch_api_execute(cmd, arg, NULL, &stream);
|
||||
switch_safe_free(last_data);
|
||||
last_data = (char *) stream.data;
|
||||
return last_data;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user