From 5b7e13c6c481cb5fc755ba5ebfbd5047e6e215fa Mon Sep 17 00:00:00 2001 From: Olivier Matz Date: Thu, 21 Jun 2018 22:45:57 +0200 Subject: [PATCH] fix strvec bad free --- lib/ecoli_strvec.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/ecoli_strvec.c b/lib/ecoli_strvec.c index ff75f1e..c574b1b 100644 --- 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; -- 2.20.1