mirror of
https://github.com/qbittorrent/qBittorrent.git
synced 2025-12-17 14:08:03 -06:00
Fix memory leaks
* Fixes a couple of memory leaks (although not dangerous in practice, since we are talking about objects with a lifetime up to the end of the application) * Fixes heap use after free PR #19650. Closes #19632.
This commit is contained in:
committed by
GitHub
parent
cacae42e5e
commit
46c1c9de65
@@ -212,7 +212,7 @@ bool RequestParser::parseRequestLine(const QString &line)
|
||||
|
||||
if (sepPos >= 0)
|
||||
{
|
||||
const QByteArrayView query = url.mid(sepPos + 1);
|
||||
const QByteArrayView query = QByteArrayView(url).mid(sepPos + 1);
|
||||
|
||||
// [rfc3986] 2.4 When to Encode or Decode
|
||||
// URL components should be separated before percent-decoding
|
||||
|
||||
Reference in New Issue
Block a user