examples/ip_pipeline: fix leak on DSCP parsing
authorJasvinder Singh <jasvinder.singh@intel.com>
Mon, 16 Apr 2018 16:03:11 +0000 (17:03 +0100)
committerCristian Dumitrescu <cristian.dumitrescu@intel.com>
Tue, 8 May 2018 11:10:41 +0000 (13:10 +0200)
commit9b60795143bbdf03bcf266492f72c4286d316c71
treebce8fbda3fd2435c5601377e0f557a4a9ad4eec9
parent0015ea276725a5e2a8f634b76c67a524c0c0a3ca
examples/ip_pipeline: fix leak on DSCP parsing

Close the file stream before returning from the function to avoid
memory leak.

Coverity issue: 272605
Fixes: 2b82ef4861c0 ("examples/ip_pipeline: add DSCP table update command")

Signed-off-by: Jasvinder Singh <jasvinder.singh@intel.com>
examples/ip_pipeline/cli.c