aboutsummaryrefslogtreecommitdiff
path: root/example/switch
diff options
context:
space:
mode:
Diffstat (limited to 'example/switch')
-rw-r--r--example/switch/odp_switch.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/example/switch/odp_switch.c b/example/switch/odp_switch.c
index 4b944fe3b..f9c717601 100644
--- a/example/switch/odp_switch.c
+++ b/example/switch/odp_switch.c
@@ -1039,6 +1039,11 @@ int main(int argc, char **argv)
exit(EXIT_FAILURE);
}
+ if (odp_shm_free(shm)) {
+ printf("Error: shm free\n");
+ exit(EXIT_FAILURE);
+ }
+
if (odp_term_local()) {
printf("Error: term local\n");
exit(EXIT_FAILURE);