nvdec: hw_pool: fix allocation function

Closed Alexandre Janniaux requested to merge alexandre-janniaux/vlc:nvdec-hwpool/1 into master
  • null-deref on error path
  • leak on error path
  • dos2unix the whole file
  • use flexible array instead of VLA to fix warning

Merge request reports