Bug 1943415
| Summary: | virsh: memory leak at invalid setmem subcommand | ||
|---|---|---|---|
| Product: | Red Hat Enterprise Linux Advanced Virtualization | Reporter: | Han Han <hhan> |
| Component: | libvirt | Assignee: | Ján Tomko <jtomko> |
| Status: | CLOSED ERRATA | QA Contact: | Jing Qi <jinqi> |
| Severity: | unspecified | Docs Contact: | |
| Priority: | unspecified | ||
| Version: | 8.4 | CC: | jdenemar, jsuchane, lmen, virt-maint, xuzhang |
| Target Milestone: | rc | Keywords: | Triaged |
| Target Release: | 8.5 | Flags: | pm-rhel:
mirror+
|
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
| Whiteboard: | |||
| Fixed In Version: | libvirt-7.3.0-1.el8 | Doc Type: | If docs needed, set a value |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2021-11-16 07:52:31 UTC | Type: | Bug |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | 7.3.0 |
| Embargoed: | |||
|
Description
Han Han
2021-03-26 02:45:13 UTC
Proposed upstream patch: https://listman.redhat.com/archives/libvir-list/2021-April/msg00167.html Tested the patch with libvirt upstream version v7.2.0-84-gafda589d05. No definitely lost any more. valgrind --leak-check=full virsh set mem 100 ==86243== LEAK SUMMARY: ==86243== definitely lost: 0 bytes in 0 blocks ==86243== indirectly lost: 0 bytes in 0 blocks ==86243== possibly lost: 1,352 bytes in 18 blocks ==86243== still reachable: 129,787 bytes in 926 blocks ==86243== of which reachable via heuristic: ==86243== newarray : 1,536 bytes in 16 blocks ==86243== suppressed: 0 bytes in 0 blocks ==86243== Reachable blocks (those to which a pointer was found) are not shown. ==86243== To see them, rerun with: --leak-check=full --show-leak-kinds=all ==86243== ==86243== For lists of detected and suppressed errors, rerun with: -s ==86243== ERROR SUMMARY: 18 errors from 18 contexts (suppressed: 0 from 0) Pushed as:
commit a131b8b517a88685ddb5f1b17c4d1a16b9a97b61
Author: Ján Tomko <jtomko>
CommitDate: 2021-04-09 13:07:30 +0200
vsh: fix memory leak in vshCommandParse
One of the error branches used a plain free where vshCommandFree
was required.
https://bugzilla.redhat.com/show_bug.cgi?id=1943415
Signed-off-by: Ján Tomko <jtomko>
Reviewed-by: Erik Skultety <eskultet>
git describe: v7.2.0-85-ga131b8b517
Verified with libvirt-daemon-7.3.0-1.module+el8.5.0+11004+f4810536.x86_64 & qemu-kvm-6.0.0-16.module+el8.5.0+10848+2dccc46d.x86_64 Steps as comment2. Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory (virt:av bug fix and enhancement update), and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. https://access.redhat.com/errata/RHBA-2021:4684 |