Skip to content

memory leak in LAPACK iparam2stage (C code) #6062

Description

@mgates3

There's a memory leak in iparam2stage here:
https://github.com/OpenMathLib/OpenBLAS/blob/develop/lapack-netlib/SRC/iparam2stage.c#L427
The string is malloced but never freed. I don't really see why there is a malloc, since subnam is already allocated on the stack in this line:
https://github.com/OpenMathLib/OpenBLAS/blob/develop/lapack-netlib/SRC/iparam2stage.c#L232
Simply deleting L427 should fix the issue.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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