FS-11077: [mod_enum] Memory Leak in mod_enum #resolve

This commit is contained in:
Brian West 2018-03-29 15:27:20 -05:00 committed by Muteesa Fred
parent b32db0dcfb
commit 6ced48476c
1 changed files with 2 additions and 1 deletions

View File

@ -866,7 +866,8 @@ SWITCH_STANDARD_API(enum_function)
} else {
stream->write_function(stream, "Invalid Input!\n");
}
switch_safe_free(mydata);
return SWITCH_STATUS_SUCCESS;
}