summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarcel Hollerbach <mail@marcel-hollerbach.de>2020-03-09 13:05:38 +0100
committerMarcel Hollerbach <mail@marcel-hollerbach.de>2020-03-09 13:13:00 +0100
commit36de6746ad89f0dbd46436f06b1fa4db8dd0bd17 (patch)
tree2276cf5ced8461aa6450833ba45e60e8c2cc3a22
parentc4feaf10adac451b966be2647e8450817c14af2a (diff)
eina_content: fix use after free in test code
-rw-r--r--src/tests/eina/eina_test_abstract_content.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/tests/eina/eina_test_abstract_content.c b/src/tests/eina/eina_test_abstract_content.c
index d2270ddaad..28c7cd3343 100644
--- a/src/tests/eina/eina_test_abstract_content.c
+++ b/src/tests/eina/eina_test_abstract_content.c
@@ -33,10 +33,10 @@ EFL_START_TEST(eina_test_content_as_file)
33 ck_assert_str_eq(file_content, text_str); 33 ck_assert_str_eq(file_content, text_str);
34 eina_file_close(f); 34 eina_file_close(f);
35 35
36 eina_content_free(content);
37
38 const char *file_path2 = eina_content_as_file(content); 36 const char *file_path2 = eina_content_as_file(content);
39 ck_assert_str_eq(file_path, file_path2); 37 ck_assert_str_eq(file_path, file_path2);
38
39 eina_content_free(content);
40} 40}
41EFL_END_TEST 41EFL_END_TEST
42 42