tests/eal: fix memory leak
authorOwen Hilyard <ohilyard@iol.unh.edu>
Wed, 16 Jun 2021 16:24:52 +0000 (12:24 -0400)
committerDavid Marchand <david.marchand@redhat.com>
Thu, 24 Jun 2021 13:34:45 +0000 (15:34 +0200)
commit80731e4b5b44036d05ae9b36432b6f2fd9f49d3b
treef7df6fabe494b9252fa0c4af2fab91406c3c1466
parentca7204b921c2f328ab1222772af40922970e7c4b
tests/eal: fix memory leak

The directory steam was not closed when the hugepage action was
HUGEPAGE_CHECK_EXISTS. This caused a memory leak in some parts of
the unit tests.

Fixes: 45f1b6e8680a ("app: add new tests on eal flags")
Cc: stable@dpdk.org
Signed-off-by: Owen Hilyard <ohilyard@iol.unh.edu>
Reviewed-by: David Marchand <david.marchand@redhat.com>
app/test/test_eal_flags.c