Skip to content

memory leaks #107

@stalestar

Description

@stalestar

Hi, thanks for grate work!

I find some memory leaks of the vsMotionDetection function:

  1. in the vs_vector_filter, vs_vector_append should be replaced by vs_vector_append_dup, and add vs_vector_del(&motions2); behind motionsfine = vs_vector_filter(&motions2, lm_match_better, &meanMatch); in vsMotionDetection meanwhile;
  2. add vs_array_free(matchQualities1); behind double meanMatch = cleanmean(matchQualities1.dat, matchQualities1.len, NULL, NULL); in vsMotionDetection;
  3. add vs_vector_fini(&motionscoarse); vs_vector_fini(&motionsfine); behind *motions = vs_vector_concat(&motionscoarse, &motionsfine); in vsMotionDetection.

You can check the code and fix the problems.
Best wishes.

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