Skip to content

Commit

Permalink
Merge pull request #1295 from karlnapf/develop
Browse files Browse the repository at this point in the history
fixed two uninitialised memory bugs
  • Loading branch information
karlnapf committed Jul 24, 2013
2 parents 85d86a4 + 11b9afe commit 97cd7af
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/shogun/kernel/string/SNPStringKernel.cpp
Expand Up @@ -192,4 +192,5 @@ void CSNPStringKernel::init()
{
m_str_min=NULL;
m_str_maj=NULL;
m_str_len=0;
}
Expand Up @@ -1889,6 +1889,8 @@ void CWeightedDegreePositionStringKernel::load_serializable_post() throw (Shogun
void CWeightedDegreePositionStringKernel::init()
{
weights=NULL;
weights_length=0;
weights_degree=0;
position_weights=NULL;
position_weights_len=0;

Expand Down

0 comments on commit 97cd7af

Please sign in to comment.