mirror of
https://github.com/signalwire/freeswitch.git
synced 2025-02-07 22:03:50 +00:00
Merge pull request #387 from signalwire/mod_dptools_leak
[mod_dptools] scan-build: Fix "Potential leak of memory pointed to by 'head'"
This commit is contained in:
commit
09b40e052f
@ -3868,7 +3868,7 @@ static void pickup_add_session(switch_core_session_t *session, const char *key)
|
|||||||
key = dup_key;
|
key = dup_key;
|
||||||
}
|
}
|
||||||
|
|
||||||
node = malloc(sizeof(*node));
|
switch_zmalloc(node, sizeof(*node));
|
||||||
switch_assert(node);
|
switch_assert(node);
|
||||||
node->key = strdup(key);
|
node->key = strdup(key);
|
||||||
node->uuid = strdup(switch_core_session_get_uuid(session));
|
node->uuid = strdup(switch_core_session_get_uuid(session));
|
||||||
|
Loading…
x
Reference in New Issue
Block a user