summaryrefslogtreecommitdiffstats
path: root/tksao/fitsy++/hcompress.C
diff options
context:
space:
mode:
authorWilliam Joye <wjoye@cfa.harvard.edu>2017-10-04 17:07:35 (GMT)
committerWilliam Joye <wjoye@cfa.harvard.edu>2017-10-04 17:07:35 (GMT)
commit3802d3df703ae75262c86187cad4d3bae745a9ca (patch)
tree8c77eac67f2decca132e559e51038024a98ed5a9 /tksao/fitsy++/hcompress.C
parenta18d63abab08e41fe439e13da46e1e686933e9c0 (diff)
downloadblt-3802d3df703ae75262c86187cad4d3bae745a9ca.zip
blt-3802d3df703ae75262c86187cad4d3bae745a9ca.tar.gz
blt-3802d3df703ae75262c86187cad4d3bae745a9ca.tar.bz2
track down memory leaks with getString
Diffstat (limited to 'tksao/fitsy++/hcompress.C')
-rw-r--r--tksao/fitsy++/hcompress.C2
1 files changed, 1 insertions, 1 deletions
diff --git a/tksao/fitsy++/hcompress.C b/tksao/fitsy++/hcompress.C
index 5ee0f6e..4a55398 100644
--- a/tksao/fitsy++/hcompress.C
+++ b/tksao/fitsy++/hcompress.C
@@ -30,7 +30,7 @@ template<class T> FitsHcompressm<T>::FitsHcompressm(FitsFile* fits)
name[5] = '0'+ii;
val[4] = '0'+ii;
if (fits->find(name)) {
- char* which = fits->getString(name);
+ char* which = fits->getStringCopy(name);
if (!strncmp(which,"SMOOTH",4))
smooth_ = fits->getInteger(val,4);
delete [] which;