Skip to content

zfec.Encoder and zfec.Decoder leak memory on re-initialization #105

Description

@exarkun

Each call to __init__ allocates memory for the fec matrix. When the object is collected, only the most recently allocated matrix is freed.

Observable with this program:

import zfec

e = zfec.Encoder(255, 256)
for i in range(100000):
    e.__init__(255, 256)

memory usage will grow as the program runs.

Encoder and Decoder should probably refuse multiple __init__ calls.

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