mirror of
https://github.com/signalwire/freeswitch.git
synced 2025-07-27 12:14:32 +00:00
CID:1024270 Dereference before null check
This commit is contained in:
parent
7d5434f57c
commit
9b1ebff8de
@ -120,10 +120,7 @@ static switch_status_t select_url(const char *user,
|
|||||||
}
|
}
|
||||||
|
|
||||||
switch_safe_free(sql);
|
switch_safe_free(sql);
|
||||||
|
switch_cache_db_release_db_handle(&db);
|
||||||
if (db) {
|
|
||||||
switch_cache_db_release_db_handle(&db);
|
|
||||||
}
|
|
||||||
|
|
||||||
return SWITCH_STATUS_SUCCESS;
|
return SWITCH_STATUS_SUCCESS;
|
||||||
}
|
}
|
||||||
@ -5167,10 +5164,7 @@ SWITCH_STANDARD_API(show_function)
|
|||||||
end:
|
end:
|
||||||
|
|
||||||
switch_safe_free(mydata);
|
switch_safe_free(mydata);
|
||||||
|
switch_cache_db_release_db_handle(&db);
|
||||||
if (db) {
|
|
||||||
switch_cache_db_release_db_handle(&db);
|
|
||||||
}
|
|
||||||
|
|
||||||
return status;
|
return status;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user