git.droids-corp.org
/
dpdk.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
eal: fix memory leak when saving arguments
[dpdk.git]
/
lib
/
eal
/
common
/
eal_common_options.c
diff --git
a/lib/eal/common/eal_common_options.c
b/lib/eal/common/eal_common_options.c
index
6ecf5fd
..
eaef573
100644
(file)
--- a/
lib/eal/common/eal_common_options.c
+++ b/
lib/eal/common/eal_common_options.c
@@
-223,9
+223,9
@@
eal_save_args(int argc, char **argv)
return -1;
for (i = 0; i < argc; i++) {
- eal_args[i] = strdup(argv[i]);
if (strcmp(argv[i], "--") == 0)
break;
+ eal_args[i] = strdup(argv[i]);
}
eal_args[i++] = NULL; /* always finish with NULL */