git.droids-corp.org
/
dpdk.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
21b5bd0
)
examples/l2fwd-keepalive: fix memory leak
author
Remy Horton
<remy.horton@intel.com>
Mon, 20 Jun 2016 15:23:07 +0000
(16:23 +0100)
committer
Thomas Monjalon
<thomas.monjalon@6wind.com>
Tue, 21 Jun 2016 13:56:39 +0000
(15:56 +0200)
Fixes memory leaks detected by Coverity. These are due to ephemeral
memory allocations not being freed when errors occur.
Coverity issue: 127349
Fixes:
e2aae1c1ced9
("ethdev: remove name from extended statistic fetch")
Signed-off-by: Remy Horton <remy.horton@intel.com>
examples/l2fwd-keepalive/shm.c
patch
|
blob
|
history
diff --git
a/examples/l2fwd-keepalive/shm.c
b/examples/l2fwd-keepalive/shm.c
index
66fc433
..
177aa5b
100644
(file)
--- a/
examples/l2fwd-keepalive/shm.c
+++ b/
examples/l2fwd-keepalive/shm.c
@@
-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;
}