mirror of
https://github.com/signalwire/freeswitch.git
synced 2025-03-13 20:50:41 +00:00
Merge pull request #1719 in FS/freeswitch from ~SILIK0N/freeswitch:master to master
* commit '7b0d25daa33f39d49cecb7e4f26b16f89e23594e': FS-11830 memory leak in SWITCH_STANDARD_API(enum_function)
This commit is contained in:
commit
b007a0d29c
@ -833,12 +833,14 @@ SWITCH_STANDARD_API(enum_function)
|
||||
if (!strcasecmp(dest, "reload")) {
|
||||
do_load();
|
||||
stream->write_function(stream, "+OK ENUM Reloaded.\n");
|
||||
switch_safe_free(mydata);
|
||||
return SWITCH_STATUS_SUCCESS;
|
||||
|
||||
}
|
||||
|
||||
if (enum_lookup(root, dest, &results, NULL, session) != SWITCH_STATUS_SUCCESS) {
|
||||
stream->write_function(stream, "No Match!\n");
|
||||
switch_safe_free(mydata);
|
||||
return SWITCH_STATUS_SUCCESS;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user