Skip to content

Commit

Permalink
Release the tag. Refs #8153.
Browse files Browse the repository at this point in the history
- It appears I only call release() if the elementTag == 1. I should call it otherwise to. This will prevent the memory leak.
  • Loading branch information
jawrainey committed Oct 18, 2013
1 parent b2e5899 commit bd0e150
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Code/Mantid/Framework/Kernel/src/CatalogInfo.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,9 @@ namespace Mantid
elementTag->release();
return (item->getAttribute(attributeName));
}
elementTag->release();
}
elementTag->release();
return ("");
}

Expand Down

0 comments on commit bd0e150

Please sign in to comment.