git.droids-corp.org
/
protos
/
libecoli.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ea3c5a3
)
fix strvec bad free
author
Olivier Matz
<zer0@droids-corp.org>
Thu, 21 Jun 2018 20:45:57 +0000
(22:45 +0200)
committer
Olivier Matz
<zer0@droids-corp.org>
Thu, 21 Jun 2018 20:45:57 +0000
(22:45 +0200)
lib/ecoli_strvec.c
patch
|
blob
|
history
diff --git
a/lib/ecoli_strvec.c
b/lib/ecoli_strvec.c
index
ff75f1e
..
c574b1b
100644
(file)
--- a/
lib/ecoli_strvec.c
+++ b/
lib/ecoli_strvec.c
@@
-401,9
+401,9
@@
static int ec_strvec_testcase(void)
}
testres |= EC_TEST_CHECK(ec_strvec_cmp(strvec, strvec2) == 0,
"strvec and strvec2 should be equal\n");
- ec_strvec_free(strvec2);
- strvec = NULL;
ec_strvec_free(strvec);
+ strvec = NULL;
+ ec_strvec_free(strvec2);
strvec2 = NULL;
return testres;