bus/dpaa: fix freeing in FMAN interface destructor
authorHemant Agrawal <hemant.agrawal@nxp.com>
Mon, 19 Jul 2021 13:59:11 +0000 (19:29 +0530)
committerThomas Monjalon <thomas@monjalon.net>
Fri, 23 Jul 2021 17:15:17 +0000 (19:15 +0200)
if was allocated with rte_malloc, free shall be equivalent.

Fixes: 4762b3d419c3 ("bus/dpaa: delay fman device list to bus probe")
Cc: stable@dpdk.org
Signed-off-by: Hemant Agrawal <hemant.agrawal@nxp.com>
drivers/bus/dpaa/base/fman/fman.c

index 692071b..a14004d 100644 (file)
@@ -50,7 +50,7 @@ if_destructor(struct __fman_if *__if)
                free(bp);
        }
 cleanup:
-       free(__if);
+       rte_free(__if);
 }
 
 static int