Skip to content

Workspace allocation in zrotg #4286

Closed

Description

@angsch

The allocation of the temporary variables

FLOAT *r, *S1=(FLOAT *)malloc(2*sizeof(FLOAT));
FLOAT *R=(FLOAT *)malloc(2*sizeof(FLOAT));

lacks a call to free(). Given the tiny size, wouldn't it be better to allocate S1 and R on the stack?

FLOAT S1[2];
FLOAT R[2];

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