about summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorKartik K. Agaram <vc@akkartik.com>2016-07-03 01:50:56 -0700
committerKartik K. Agaram <vc@akkartik.com>2016-07-03 01:50:56 -0700
commite8418eb7f6328dbfaa8df852960059aeeaf3bd50 (patch)
tree1c9198bf0f8e2a3c6bf03b839c385c56301667bb
parent14ef940425c921b8881810756a0ef8aa952a77fb (diff)
downloadmu-e8418eb7f6328dbfaa8df852960059aeeaf3bd50.tar.gz
3087
-rw-r--r--073deep_copy.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/073deep_copy.cc b/073deep_copy.cc
index 5ddb29fd..4808baa1 100644
--- a/073deep_copy.cc
+++ b/073deep_copy.cc
@@ -183,9 +183,9 @@ int deep_copy_address(const reagent& canonized_in, map<int, int>& addresses_copi
   trace(9991, "run") << "deep-copy: copying address " << in_address << end();
   if (contains_key(addresses_copied, in_address))
     return get(addresses_copied, in_address);
+  int out = allocate(payload_size(canonized_in));
   reagent/*copy*/ payload = canonized_in;
   payload.properties.push_back(pair<string, string_tree*>("lookup", NULL));
-  int out = allocate(payload_size(payload));
   put(addresses_copied, in_address, out);
   reagent/*copy*/ payload_type = payload;
   canonize_type(payload_type);