Skip to content

Memory leak bugs.  #1453

@gangfan

Description

@gangfan

Hi,

We've found some leak bugs in Tmux, please have a look.
To save your precious time, I list all of them in this post.

1 Place: cmd-run-shell.c : 94
Description:
cdata leaks when job_run fails. I've checked the code of job_run, it does not free cdata when fails.

image

2 Place: /cmd-if-shell.c : 101
Description:
Same problem as above in cmd-if-shell.c

image

3 Place: /cmd-load-buffer.c : 79
Description:
Similar problem

image

4 Place: format.c: 1099
Description:

"found" is leaked when format_choose failed.
image

Thanks

GF
Sourcebrella

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions