mpv-player/mpv — pull request #1063 by brunogm0 (2014-09-04 16:13:56+00:00)
Title: malloc+memset to calloc and realloc leak fix 

Realloc good practice is to use a tmp pointer only when tested the assignment is completed.
malloc+ memset is bad practice on security and performance. Security because the params are tested for memory hazards and overflows.