distributor: fix creation error checks
authorDavid Hunt <david.hunt@intel.com>
Tue, 4 Apr 2017 02:42:41 +0000 (03:42 +0100)
committerThomas Monjalon <thomas.monjalon@6wind.com>
Tue, 4 Apr 2017 12:58:49 +0000 (14:58 +0200)
commit7c37da5a9ad9a9d933643375e23f013a4c43fe77
tree97d4dcc3d1a25222ed089214a2e0d307ca351ef3
parent201d52bc0df70fd5dde9a79b5b6cd70a21f6fd34
distributor: fix creation error checks

Coverity issue 143258: not freeing distributor instance
Coverity issue 143254: not checking return code from malloc
Fixes: 775003ad2f96 ("distributor: add new burst-capable library")

Signed-off-by: David Hunt <david.hunt@intel.com>
lib/librte_distributor/rte_distributor.c