==67758== Invalid read of size 8 ==67758== at 0x1009CE2A1: void boost::detail::r_c_shortest_paths_dispatch< BGraph, FunctionPropertyMap, FunctionPropertyMap, Label, LabelExtender const, Dominance const, std::allocator>, boost::default_r_c_shortest_paths_visitor> ( BGraph const&, FunctionPropertyMap const&, FunctionPropertyMap const&, Vertex, Vertex, std::vector>, std::allocator>>&, std::vector>&, bool, Label const&, LabelExtender const&, Dominance const&, std::allocator>, boost::default_r_c_shortest_paths_visitor ) (r_c_shortest_paths.hpp:425)] ==67758== by 0x1009CCE2D: void boost::r_c_shortest_paths< BGraph, FunctionPropertyMap, FunctionPropertyMap, Label, LabelExtender, Dominance, std::allocator>, boost::default_r_c_shortest_paths_visitor> ( BGraph const&, FunctionPropertyMap const&, FunctionPropertyMap const&, Vertex, Vertex, std::vector>, std::allocator>>&, std::vector>&, Label const&, LabelExtender const&, Dominance const&, std::allocator>, boost::default_r_c_shortest_paths_visitor ) (r_c_shortest_paths.hpp:506) ==67758== by 0x1009D4D9A: HeuristicsSolver::solve_on_reduced_graph(float) const (heuristics_solver.cpp:178) ==67758== by 0x1009DB102: SPSolver::solve(std::vector >&) (sp_solver.cpp:75) ==67758== by 0x1009DEA65: main (main.cpp:35) ********* ==67758== Address 0x104903a40 is 0 bytes inside a block of size 88 free'd ********* ==67758== at 0x5632: free (in /usr/local/Cellar/valgrind/3.8.1/lib/valgrind/vgpreload_memcheck-amd64-darwin.so) ==67758== by 0x1009CF3A3: __gnu_cxx::new_allocator, std::shared_ptr, boost::no_property, boost::listS>, Label> >::deallocate(boost::r_c_shortest_paths_label, std::shared_ptr, boost::no_property, boost::listS>, Label>*, unsigned long) (ext/new_allocator.h:110) ==67758== by 0x1009CDA18: void boost::detail::r_c_shortest_paths_dispatch< BGraph, FunctionPropertyMap, FunctionPropertyMap, Label, LabelExtender const, Dominance const, std::allocator>, boost::default_r_c_shortest_paths_visitor> ( BGraph const&, FunctionPropertyMap const&, FunctionPropertyMap const&, Vertex, Vertex, std::vector>, std::allocator>>&, std::vector>&, bool, Label const&, LabelExtender const&, Dominance const&, std::allocator>, boost::default_r_c_shortest_paths_visitor ) (r_c_shortest_paths.hpp:314) ==67758== by 0x1009CCE2D: void boost::r_c_shortest_paths< BGraph, FunctionPropertyMap, FunctionPropertyMap, Label, LabelExtender, Dominance, std::allocator>, boost::default_r_c_shortest_paths_visitor> ( BGraph const&, FunctionPropertyMap const&, FunctionPropertyMap const&, Vertex, Vertex, std::vector>, std::allocator>>&, std::vector>&, Label const&, LabelExtender const&, Dominance const&, std::allocator>, boost::default_r_c_shortest_paths_visitor ) (r_c_shortest_paths.hpp:506) ==67758== by 0x1009D4D9A: HeuristicsSolver::solve_on_reduced_graph(float) const (heuristics_solver.cpp:178) ==67758== by 0x1009DB102: SPSolver::solve(std::vector >&) (sp_solver.cpp:75) ==67758== by 0x1009DEA65: main (main.cpp:35)