Static code scan issues seen in File: /subsys/bluetooth/shell/gatt.c
Category: Memory - corruptions
Function: cmd_discover
Component: Bluetooth
CID: 197459
Please fix or provide comments to square it off in coverity in the link: https://scan9.coverity.com/reports.htm#v32951/p12996