From 52426b8585020214293b10e78f0b129b51141ca8 Mon Sep 17 00:00:00 2001 From: Miika Turkia Date: Thu, 4 May 2017 21:22:41 +0300 Subject: Fix memory leak Signed-off-by: Miika Turkia --- tests/testparse.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'tests') diff --git a/tests/testparse.cpp b/tests/testparse.cpp index 7195af75a..ec47d3d27 100644 --- a/tests/testparse.cpp +++ b/tests/testparse.cpp @@ -60,7 +60,7 @@ int TestParse::parseCSV(int units, std::string file) char *params[55]; int pnr = 0; - params[pnr++] = strdup(strdup("numberField")); + params[pnr++] = strdup("numberField"); params[pnr++] = intdup(0); params[pnr++] = strdup("dateField"); params[pnr++] = intdup(1); @@ -411,7 +411,7 @@ int TestParse::parseCSVmanual(int units, std::string file) char *params[55]; int pnr = 0; - params[pnr++] = strdup(strdup("numberField")); + params[pnr++] = strdup("numberField"); params[pnr++] = intdup(0); params[pnr++] = strdup("dateField"); params[pnr++] = intdup(1); -- cgit v1.2.3-70-g09d2