Skip to content

Commit

Permalink
fix double free upon save_kernel()
Browse files Browse the repository at this point in the history
  • Loading branch information
Soeren Sonnenburg committed May 12, 2012
1 parent 81696d6 commit 8325d1e
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion src/shogun/kernel/Kernel.cpp
Expand Up @@ -639,7 +639,6 @@ void CKernel::save(CFile* writer)
SGMatrix<float64_t> k_matrix=get_kernel_matrix<float64_t>();
SG_SET_LOCALE_C;
writer->set_matrix(k_matrix.matrix, k_matrix.num_rows, k_matrix.num_cols);
SG_FREE(k_matrix.matrix);
SG_RESET_LOCALE;
}

Expand Down

0 comments on commit 8325d1e

Please sign in to comment.