summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorsbrandt <sbrandt@17b73243-c579-4c4c-a9d2-2d5706c11dac>2014-01-17 15:32:50 +0000
committersbrandt <sbrandt@17b73243-c579-4c4c-a9d2-2d5706c11dac>2014-01-17 15:32:50 +0000
commit2e8ce987b13742a9881d3b7f15742c0a2c0a630b (patch)
tree523099f604d28002ff04ba17e352d5f3802c50b0
parent321185b08dc338e8aaa489b1b909069274b4dc4c (diff)
Close ticket #1519
git-svn-id: http://svn.cactuscode.org/flesh/trunk@5067 17b73243-c579-4c4c-a9d2-2d5706c11dac
-rw-r--r--src/piraha/Call.cc8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/piraha/Call.cc b/src/piraha/Call.cc
index 30547c0d..f223bddd 100644
--- a/src/piraha/Call.cc
+++ b/src/piraha/Call.cc
@@ -872,8 +872,8 @@ extern "C" int cctk_PirahaParser(const char *buffer,unsigned long buffersize,int
check_types(thorn.c_str(),aexpr->line(),smv,data->type);
}
set_function(
- strdup(key.c_str()),
- strdup(val.c_str()),
+ key.c_str(),
+ val.c_str(),
gr->group(0)->line());
} else {
smart_ptr<Group> arr = gr->group("array");
@@ -891,8 +891,8 @@ extern "C" int cctk_PirahaParser(const char *buffer,unsigned long buffersize,int
check_types(thorn.c_str(),aexpr->line(),smv,data->type);
}
set_function(
- strdup(keyi.str().c_str()),
- strdup(val.c_str()),
+ keyi.str().c_str(),
+ val.c_str(),
aexpr->line());
}
}