Skip to content

Commit

Permalink
Fix leak in SGMatrix::get_row_vector function
Browse files Browse the repository at this point in the history
  • Loading branch information
vigsterkr committed Jun 6, 2013
1 parent 81dd25b commit 1648596
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/shogun/lib/SGMatrix.cpp
Expand Up @@ -953,7 +953,7 @@ void SGMatrix<complex64_t>::save(CFile* saver)
template<class T>
SGVector<T> SGMatrix<T>::get_row_vector(index_t row) const
{
SGVector<T> rowv(num_cols, false);
SGVector<T> rowv(num_cols);
for (index_t i = 0; i < num_cols; i++)
{
rowv[i] = matrix[i*num_rows+row];
Expand Down

0 comments on commit 1648596

Please sign in to comment.