Skip to content

Commit ab1a8f8

Browse files
committed
Fixed registry not released when conn_*_init failed
1 parent 387566f commit ab1a8f8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/conn.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -158,7 +158,7 @@ int conn_create(juice_agent_t *agent, udp_socket_config_t *config) {
158158
}
159159

160160
if (get_mode_entry(agent)->init_func(agent, registry, config)) {
161-
mutex_unlock(&registry->mutex);
161+
release_registry(entry); // unlocks the registry
162162
return -1;
163163
}
164164

0 commit comments

Comments
 (0)