Was found by ASan <http://clang.llvm.org/docs/AddressSanitizer.html> when
implementing (still WIP) test for vignetting correction.
https://github.com/LebedevRI/lensfun/tree/tests-test-mod-color
From a1d8a1abe13f87efce19e5e99ebf93b096e8233f Mon Sep 17 00:00:00 2001
From: Roman Lebedev <[email protected]>
Date: Mon, 13 Oct 2014 01:38:19 +0400
Subject: [PATCH] test_modifier: fix: AddressSanitizer: alloc-dealloc-mismatch
(operator new vs free)
Signed-off-by: Roman Lebedev <[email protected]>
---
tests/test_modifier.cpp | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/tests/test_modifier.cpp b/tests/test_modifier.cpp
index 367cde6..7f4fdea 100644
--- a/tests/test_modifier.cpp
+++ b/tests/test_modifier.cpp
@@ -30,7 +30,7 @@ void mod_setup(lfFixture *lfFix, gconstpointer data)
void mod_teardown(lfFixture *lfFix, gconstpointer data)
{
lfFix->mod->Destroy();
- lf_free(lfFix->lens);
+ delete lfFix->lens;
}
// test to verifiy that projection center is image center
--
2.1.1
------------------------------------------------------------------------------
Meet PCI DSS 3.0 Compliance Requirements with EventLog Analyzer
Achieve PCI DSS 3.0 Compliant Status with Out-of-the-box PCI DSS Reports
Are you Audit-Ready for PCI DSS 3.0 Compliance? Download White paper
Comply to PCI DSS 3.0 Requirement 10 and 11.5 with EventLog Analyzer
http://p.sf.net/sfu/Zoho
_______________________________________________
Lensfun-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/lensfun-users