Skip to content

Cherry-pick #12100 to 7.1: Fix various memory leaks under Windows#12124

Merged
adriansr merged 1 commit intoelastic:7.1from
adriansr:backport_12100_7.1
May 9, 2019
Merged

Cherry-pick #12100 to 7.1: Fix various memory leaks under Windows#12124
adriansr merged 1 commit intoelastic:7.1from
adriansr:backport_12100_7.1

Conversation

@adriansr
Copy link
Copy Markdown
Contributor

@adriansr adriansr commented May 9, 2019

Cherry-pick of PR #12100 to 7.1 branch. Original message:

A function in go-sysinfo used under Windows to split a command-line into arguments was leaking memory.

This code was used in various places:

add_process_metadata processor. (enabled by default in all Beats)
Packetbeat's process monitor. (disabled by default).
Auditbeat's system/process metricset.
This PR updates vendored go-sysinfo to the most recent version, which fixes the leak.

(cherry picked from commit a5b3f0a)

A function in go-sysinfo used under Windows to split a command-line into arguments was leaking memory.

This code was used in various places:

add_process_metadata processor. (enabled by default in all Beats)
Packetbeat's process monitor. (disabled by default).
Auditbeat's system/process metricset.
This PR updates vendored go-sysinfo to the most recent version, which fixes the leak.

(cherry picked from commit a5b3f0a)
@adriansr adriansr merged commit d0179c5 into elastic:7.1 May 9, 2019
leweafan pushed a commit to leweafan/beats that referenced this pull request Apr 28, 2023
A function in go-sysinfo used under Windows to split a command-line into arguments was leaking memory.

This code was used in various places:

add_process_metadata processor. (enabled by default in all Beats)
Packetbeat's process monitor. (disabled by default).
Auditbeat's system/process metricset.
This PR updates vendored go-sysinfo to the most recent version, which fixes the leak.

(cherry picked from commit a4676ff)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants