Skip to content

Memory leak in warpAffine #4

Description

@Junonia

I think there is a bug generic/opencv.c, in function

static int libopencv_(Main_cvWarpAffine) (lua_State *L) {

At the end,

cvReleaseImage(&source_ipl);
cvReleaseImage(&dest_ipl);

should be used to release all the memory. Otherwise, memory will keep increasing.

Activity

  1. harrisonzhao commented on Feb 13, 2015

    @harrisonzhao

    That fix works but you have to delete the lines:

    cvReleaseImageHeader(&source_ipl);
    cvReleaseImageHeader(&dest_ipl);

    from the function or else your fix won't work.
    I also had to delete all the CMake generated files and rebuild from scratch for it to successfully fix the memory leak.

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

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions