From 14d9855c539d2853671729ba3f4f2051fc3a120c Mon Sep 17 00:00:00 2001 From: cbeall3 Date: Wed, 28 May 2014 18:57:00 -0400 Subject: [PATCH] Fix memory error uncovered by valgrind --- gtsam/nonlinear/LagoInitializer.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gtsam/nonlinear/LagoInitializer.cpp b/gtsam/nonlinear/LagoInitializer.cpp index 08278634d..789ff8d87 100644 --- a/gtsam/nonlinear/LagoInitializer.cpp +++ b/gtsam/nonlinear/LagoInitializer.cpp @@ -21,8 +21,8 @@ namespace gtsam { -Matrix I = eye(1); -Matrix I3 = eye(3); +static Matrix I = eye(1); +static Matrix I3 = eye(3); /* ************************************************************************* */ double computeThetaToRoot(const Key nodeKey, const PredecessorMap& tree,