Skip to content

Commit

Permalink
Fix for issue #929 and #930
Browse files Browse the repository at this point in the history
Release SGVector gaussian sample in CDataGenerator::generate_gaussians
  • Loading branch information
vigsterkr committed Mar 14, 2013
1 parent 55d0cf0 commit 807d8ca
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/shogun/features/DataGenerator.cpp
Expand Up @@ -104,6 +104,7 @@ SGMatrix<float64_t> CDataGenerator::generate_gaussians(index_t m, index_t n, ind
{
SGVector<float64_t> v = g->sample();
memcpy((result.matrix+j*result.num_rows+i*m*dim), v.vector, dim*sizeof(float64_t));
SG_FREE(v.vector);
}

SG_UNREF(g);
Expand Down

0 comments on commit 807d8ca

Please sign in to comment.