]> git.tdb.fi Git - libs/datafile.git/commitdiff
Plug a memory leak
authorMikko Rasa <tdb@tdb.fi>
Sat, 7 Mar 2015 02:07:09 +0000 (04:07 +0200)
committerMikko Rasa <tdb@tdb.fi>
Sat, 7 Mar 2015 02:07:09 +0000 (04:07 +0200)
source/argumentstore.cpp

index 49bdbada1b2c5fa49bdb4b9e4158b9c901c8dc13..532d66aaa230e49a63209be828de19ab3b5ed5aa 100644 (file)
@@ -31,6 +31,8 @@ ArgumentStore::~ArgumentStore()
                        reinterpret_cast<SymbolType::Store *>(store+info.arg_offsets[i])->~Symbol();
                        break;
                }
+
+       delete[] store;
 }
 
 } // namespace DataFile