lib: Replace malloc/memset(..0..) with bt_malloc0
authorAravind Machiry <machiry@cs.ucsb.edu>
Mon, 28 Sep 2020 19:20:02 +0000 (12:20 -0700)
committerAyush Garg <ayush.garg@samsung.com>
Fri, 11 Mar 2022 13:38:33 +0000 (19:08 +0530)
commit8f51220c85f02639924744b8a97619a54f1d6a1d
treebf9e2ce253afc61f6a8e59b8fe2800f44b16f49f
parent921a993488215fdf8ad566f9da65318f4470449a
lib: Replace malloc/memset(..0..) with bt_malloc0

This patch replaces various instances of malloc and subsequent
memset(..,0,..) with bt_malloc0 (i.e., calloc) for efficiency.

Signed-off-by: Anuj Jain <anuj01.jain@samsung.com>
Signed-off-by: Ayush Garg <ayush.garg@samsung.com>
lib/bluetooth.c
lib/bluetooth.h
lib/sdp.c