diff options
author | Michael Vogt <mvo@debian.org> | 2014-05-27 16:25:43 +0200 |
---|---|---|
committer | Michael Vogt <mvo@debian.org> | 2014-05-27 16:25:43 +0200 |
commit | 21ea1dbb50176a89e7f456f9b31220ff3097fdf2 (patch) | |
tree | f536b7ad06a46286b21a93254524af2da4e801bf /ftparchive/writer.h | |
parent | 9518b448743e9030d854fcbb104516dd5ba648f6 (diff) |
use free() instead of delete() when realloc is used
ContentsExtract::~ContentsExtract() needs to use free() because
Data got allocated via realloc()
Reported-By: clang -fsanitize=address -fno-omit-frame-pointer
Diffstat (limited to 'ftparchive/writer.h')
-rw-r--r-- | ftparchive/writer.h | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/ftparchive/writer.h b/ftparchive/writer.h index b1a653e7d..d8a10e0bb 100644 --- a/ftparchive/writer.h +++ b/ftparchive/writer.h @@ -127,8 +127,10 @@ class PackagesWriter : public FTWScanner {return Over.ReadExtraOverride(File);}; virtual bool DoPackage(string FileName); - PackagesWriter(string const &DB,string const &Overrides,string const &ExtOverrides=string(), - string const &Arch=string()); + PackagesWriter(string const &DB, + string const &Overrides, + string const &ExtOverrides = "", + string const &Arch = ""); virtual ~PackagesWriter() {}; }; |