codec/planar: Fix leak found by covscan
authorOndrej Holy <oholy@redhat.com>
Tue, 21 Aug 2018 07:16:47 +0000 (09:16 +0200)
committerOndrej Holy <oholy@redhat.com>
Wed, 22 Aug 2018 12:34:02 +0000 (14:34 +0200)
commit79d0725a80d3dd17c1dd9cfc6c2b543c909b22e7
treee7de685b733484506881813f309413a1b7b2b15c
parent36960e97a4b99dfb54f8e7d76c84f714edf82322
codec/planar: Fix leak found by covscan

The patch changes API of functions instead of fixing unused and broken code.

leaked_storage: Returning without freeing "outPlane" leaks the storage that it points to.
libfreerdp/codec/planar.c