net/qede/base: change valloc to vzalloc
[dpdk.git] / examples / l2fwd-keepalive / shm.c
index 66fc433..177aa5b 100644 (file)
@@ -80,6 +80,8 @@ struct rte_keepalive_shm *rte_keepalive_shm_create(void)
                                RTE_LOG(INFO, EAL,
                                        "Failed to setup SHM semaphore (%s)\n",
                                        strerror(errno));
+                               munmap(ka_shm,
+                                       sizeof(struct rte_keepalive_shm));
                                return NULL;
                        }