mirror of
https://github.com/Netflix/dial-reference.git
synced 2026-06-08 10:59:59 +00:00
Fix double ds_unlock call per reported issue.
Got rid of double ds_unlock call.
This commit is contained in:
@@ -638,7 +638,6 @@ int DIAL_register_app(DIALServer *ds, const char *app_name,
|
|||||||
ds_lock(ds);
|
ds_lock(ds);
|
||||||
ptr = find_app(ds, app_name);
|
ptr = find_app(ds, app_name);
|
||||||
if (*ptr != NULL) { // app already registered
|
if (*ptr != NULL) { // app already registered
|
||||||
ds_unlock(ds);
|
|
||||||
ret = 0;
|
ret = 0;
|
||||||
} else {
|
} else {
|
||||||
app = malloc(sizeof(DIALApp));
|
app = malloc(sizeof(DIALApp));
|
||||||
|
|||||||
Reference in New Issue
Block a user