meetecho / janus-gateway

Janus WebRTC Server
https://janus.conf.meetecho.com
GNU General Public License v3.0
8.25k stars 2.48k forks source link

[1.x] Replace g_malloc () with g_malloc0 () in the code #3188

Closed fengyj2022 closed 1 year ago

fengyj2022 commented 1 year ago

g_malloc () in the code should be replaced with g_malloc0 () to simplify data initialization@ lminiero

lminiero commented 1 year ago

We use g_malloc on purpose in many places, see here for context: https://github.com/meetecho/janus-gateway/pull/2575#issuecomment-790653240