Skip to content

[Defect] Memory leak in memcached.c  #337

@gangfan

Description

@gangfan

Our tool Pinpoint has found a memory leak defect in memcachd.c. Here is the screenshot of this defect.

The memory allocated on line 5958 is pointed by the pointer list. On line 5974, when e==Null, the program takes the true branch and returned to its caller without freeing the memory pointed by list.

Suggest Fix:
free(list) on line 5975.

image
image

Gang
Sourcebrella & HKUST

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions