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
test/barrier: fix allocation check
[dpdk.git]
/
app
/
test
/
test_barrier.c
diff --git
a/app/test/test_barrier.c
b/app/test/test_barrier.c
index
c219d56
..
ae37b1e
100644
(file)
--- a/
app/test/test_barrier.c
+++ b/
app/test/test_barrier.c
@@
-202,7
+202,7
@@
plock_test(uint32_t iter, enum plock_use_type utype)
printf("%s(iter=%u, utype=%u) started on %u lcores\n",
__func__, iter, utype, n);
- if (pt == NULL || lpt == NULL) {
+ if (pt == NULL || lpt == NULL
|| sum == NULL
) {
printf("%s: failed to allocate memory for %u lcores\n",
__func__, n);
free(pt);