[OpenSIPS-Devel] [OpenSIPS/opensips] 702812: [proto_ws] fix mem leak when hdr parsing fails

Bogdan Andrei IANCU noreply at github.com
Wed Apr 24 19:01:31 UTC 2024


  Branch: refs/heads/3.2
  Home:   https://github.com/OpenSIPS/opensips
  Commit: 702812fd53ba579e047308d3616ae6b7d797ac2d
      https://github.com/OpenSIPS/opensips/commit/702812fd53ba579e047308d3616ae6b7d797ac2d
  Author: Bogdan-Andrei Iancu <bogdan at opensips.org>
  Date:   2024-04-24 (Wed, 24 Apr 2024)

  Changed paths:
    M modules/proto_ws/ws_handshake_common.h

  Log Message:
  -----------
  [proto_ws] fix mem leak when hdr parsing fails

Even if the hdr parsing failed (due to a bogus hdr), you still have to free whatever hdrs were already parsed ;)
Reported by @11qeq11
Closes #3353

(cherry picked from commit 6a847364b5122d6abc76229c892fb8d48c24fac5)



To unsubscribe from these emails, change your notification settings at https://github.com/OpenSIPS/opensips/settings/notifications



More information about the Devel mailing list