v01d/ruby-gsl-ng — pull request #15 by ronen (2012-02-09 13:38:33+00:00)
Title: fix memory leak in Matrix#view, Matrix#row_view, Matrix#column_view

in gslng_extensions.cpp, the view methods were allocating a new matrix or vector object and and overwriting its contents with the information from the view. however that allocation included not only the header struct, but also the data memory for a matrix or vector, and the data pointer to that memory was then overwritten with data pointer for the view contents, and that memory itself never was lost and never freed. so instead of allocating the full matrix or vector object, allocating only the header struct.