summaryrefslogtreecommitdiff
path: root/src/expr/node_builder.h
diff options
context:
space:
mode:
authorTim King <taking@cs.nyu.edu>2010-06-01 16:39:02 +0000
committerTim King <taking@cs.nyu.edu>2010-06-01 16:39:02 +0000
commit249f3ff2221d88c28faf17e56846009326455606 (patch)
treefc6160a300c23a40478c900b1782fc018833fee5 /src/expr/node_builder.h
parentaad6d724f09fe523d7c1d53e2db959801f28fc3e (diff)
Fixed a bug in partial_model.cpp where the data was immediately deallocated before being used. Fixed a bug in node_builder.h's crop where a pointer is dereferenced after a realloc call.
Diffstat (limited to 'src/expr/node_builder.h')
-rw-r--r--src/expr/node_builder.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/expr/node_builder.h b/src/expr/node_builder.h
index cefeb2fe2..fcc6bb364 100644
--- a/src/expr/node_builder.h
+++ b/src/expr/node_builder.h
@@ -372,8 +372,8 @@ protected:
// NodeBuilder.
throw std::bad_alloc();
}
- d_nvMaxChildren = d_nv->d_nchildren;
d_nv = newBlock;
+ d_nvMaxChildren = d_nv->d_nchildren;
}
}
generated by cgit on debian on lair
contact matthew@masot.net with questions or feedback