Project

General

Profile

Actions

Optimization #1046

closed

replace pcre_get_substring with pcre_copy_substring

Added by Victor Julien almost 11 years ago. Updated over 3 years ago.

Status:
Closed
Priority:
Normal
Target version:
Effort:
Difficulty:
Label:

Description

The get variant returns newly alloc'd memory, which is unnecessary most of the time.

We should replace the get usage in all rule parsing code.


Related issues 1 (0 open1 closed)

Related to Suricata - Bug #3566: rules: minor memory leak involving pcre_get_substringClosedJeff LucovskyActions
Actions

Also available in: Atom PDF