[Core] Fix possible leak of the subclass variable in CUSTOM_HASH'es switch_event_reserve_subclass_detailed().

This commit is contained in:
Andrey Volk
2020-02-16 00:29:38 +04:00
parent d32e7f1973
commit 8dd27183f8
3 changed files with 18 additions and 1 deletions

View File

@@ -71,6 +71,11 @@ struct switch_network_list {
char *name;
};
SWITCH_DECLARE(void *) switch_calloc(size_t nmemb, size_t size)
{
return calloc(nmemb, size);
}
#ifndef WIN32
SWITCH_DECLARE(int) switch_inet_pton(int af, const char *src, void *dst)
{