diff options
author | William Joye <wjoye@cfa.harvard.edu> | 2017-10-04 17:07:35 (GMT) |
---|---|---|
committer | William Joye <wjoye@cfa.harvard.edu> | 2017-10-04 17:07:35 (GMT) |
commit | 3802d3df703ae75262c86187cad4d3bae745a9ca (patch) | |
tree | 8c77eac67f2decca132e559e51038024a98ed5a9 /tksao/fitsy++/card.h | |
parent | a18d63abab08e41fe439e13da46e1e686933e9c0 (diff) | |
download | blt-3802d3df703ae75262c86187cad4d3bae745a9ca.zip blt-3802d3df703ae75262c86187cad4d3bae745a9ca.tar.gz blt-3802d3df703ae75262c86187cad4d3bae745a9ca.tar.bz2 |
track down memory leaks with getString
Diffstat (limited to 'tksao/fitsy++/card.h')
-rw-r--r-- | tksao/fitsy++/card.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/tksao/fitsy++/card.h b/tksao/fitsy++/card.h index c5b5350..c12265b 100644 --- a/tksao/fitsy++/card.h +++ b/tksao/fitsy++/card.h @@ -18,6 +18,8 @@ class FitsCard { private: char* card_; int managed; + // only used to return pointer to internal string + char buf_[FTY_CARDLEN]; public: FitsCard(); @@ -62,6 +64,7 @@ public: double getReal(); void getComplex(double*, double*); char* getString(); + char* getStringCopy(); char* getComment(); char* getAsString(); }; |