zeux / qgrep

Fast regular expression grep for source code with incremental index updates
MIT License
335 stars 43 forks source link

fixed alloc-dealloc mismatch #10

Closed Katharina-R closed 5 years ago

Katharina-R commented 5 years ago

std::shared_ptr(new char[size]); creates an alloc-dealloc mismatch as the shared pointer automatically calls delete (and not delete[] ). The shared pointer will now call delete[].

zeux commented 5 years ago

Thanks!