mirror of
https://github.com/espressif/esp-idf.git
synced 2025-07-31 19:24:33 +02:00
fix(bt/bluedorid): Fixed crash caused by using illegal pointer
This commit is contained in:
committed by
Xiong Wei Chao
parent
da2a32fbad
commit
eab0acdb3c
@@ -285,8 +285,8 @@ static int free_sdp_slot(int id)
|
|||||||
// Record have already been freed
|
// Record have already been freed
|
||||||
handle = -1;
|
handle = -1;
|
||||||
}
|
}
|
||||||
osi_free(slot);
|
osi_free(sdp_local_param.sdp_slots[id]);
|
||||||
slot = NULL;
|
sdp_local_param.sdp_slots[id] = NULL;
|
||||||
|
|
||||||
return handle;
|
return handle;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user