raw/skeleton: fix resource leak in test
authorShreyansh Jain <shreyansh.jain@nxp.com>
Wed, 9 May 2018 15:26:08 +0000 (20:56 +0530)
committerThomas Monjalon <thomas@monjalon.net>
Sun, 13 May 2018 23:01:07 +0000 (01:01 +0200)
Coverity issue: 260402
Fixes: 55ca1b0f2151 ("raw/skeleton: add test cases")
Cc: stable@dpdk.org
Signed-off-by: Shreyansh Jain <shreyansh.jain@nxp.com>
drivers/raw/skeleton_rawdev/skeleton_rawdev_test.c

index 795f24b..7ad8f19 100644 (file)
@@ -288,6 +288,7 @@ test_rawdev_attr_set_get(void)
                              "Attribute (Test2) not set correctly (%" PRIu64 ")",
                              ret_value);
 
+       free(dummy_value);
        return TEST_SUCCESS;
 }