forked from Mirrors/freeswitch
FS-11830 memory leak in SWITCH_STANDARD_API(enum_function)
This commit is contained in:
parent
c86f66436e
commit
7b0d25daa3
|
@ -833,12 +833,14 @@ SWITCH_STANDARD_API(enum_function)
|
||||||
if (!strcasecmp(dest, "reload")) {
|
if (!strcasecmp(dest, "reload")) {
|
||||||
do_load();
|
do_load();
|
||||||
stream->write_function(stream, "+OK ENUM Reloaded.\n");
|
stream->write_function(stream, "+OK ENUM Reloaded.\n");
|
||||||
|
switch_safe_free(mydata);
|
||||||
return SWITCH_STATUS_SUCCESS;
|
return SWITCH_STATUS_SUCCESS;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if (enum_lookup(root, dest, &results, NULL, session) != SWITCH_STATUS_SUCCESS) {
|
if (enum_lookup(root, dest, &results, NULL, session) != SWITCH_STATUS_SUCCESS) {
|
||||||
stream->write_function(stream, "No Match!\n");
|
stream->write_function(stream, "No Match!\n");
|
||||||
|
switch_safe_free(mydata);
|
||||||
return SWITCH_STATUS_SUCCESS;
|
return SWITCH_STATUS_SUCCESS;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue