picture: fix empty allocation leak
authorRémi Denis-Courmont <remi@remlab.net>
Mon, 26 Feb 2018 21:32:45 +0000 (23:32 +0200)
committerRémi Denis-Courmont <remi@remlab.net>
Mon, 26 Feb 2018 21:34:41 +0000 (23:34 +0200)
commit054bcfe4a97449d57d4f701ef642fdd01b3bcca9
tree16bdc8b3790370ed08285a6deffc5e50d59c93fb
parente3ec9f5c402026ea36fcb0a9244a24ed111194cf
picture: fix empty allocation leak

If the picture has zero planes, pic->p->p_pixels is set to NULL rather
than the allocated (zero bytes) buffer, leading to a potential leak
depending on aligned_alloc() implementation.
src/misc/picture.c