Skip to content

Commit

Permalink
fix memory leak in example
Browse files Browse the repository at this point in the history
  • Loading branch information
Soeren Sonnenburg committed May 7, 2012
1 parent 8264e5c commit e6ca6cf
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions examples/undocumented/libshogun/library_indirect_object.cpp
Expand Up @@ -37,6 +37,8 @@ int main(int argc, char** argv)
for (int i=0; i<l; i++)
printf("a[%d]=%d x[%d]=%d\n", i, a[i], i, int32_t(x[i]));

SG_FREE(x);
SG_FREE(a);
exit_shogun();

return 0;
Expand Down

0 comments on commit e6ca6cf

Please sign in to comment.