Browse Source

fix "Mismatched free() / delete / delete []" in simple_buffer

debian/1.8.y
Stefan Bühler 6 years ago
committed by Julian Andres Klode
parent
commit
ab16ead7f8
  1. 2
      apt-pkg/contrib/fileutl.cc

2
apt-pkg/contrib/fileutl.cc

@ -935,7 +935,7 @@ struct APT_HIDDEN simple_buffer { /*{{{*/
reset(4096);
}
~simple_buffer() {
delete buffer;
delete[] buffer;
}
const char *get() const { return buffer + bufferstart; }

Loading…
Cancel
Save