what's with the void* + casting

Change-Id: I4e04db86518b9a767da23dda3678002460f6f41d
coverity#1260448 Uninitialized scalar field

Change-Id: I12292071f42ba3011172f35eba1be61ecd3d8483
coverity#735393 Resource leak in object

Change-Id: Ib39befba388568004a4cda57a1b161ba2a80c822
coverity#1260446 Uninitialized scalar field

and

coverity#1260447 Uninitialized scalar field

Change-Id: I3aa5a1caf776fddc8b6029e96c24aa86b21de880
coverity#982279 Resource leak in object

Change-Id: I8a616dee5795c3614baa69840b3a8808ef89b650
coverity#982280 Resource leak in object

Change-Id: I005ed6f44925df7f380eadc4f9971bc1c030a0ca