Commit c3e996b9 authored by Bastien Nocera's avatar Bastien Nocera

mindtct: Fix memory leak in error path in shape_from_contour()

libfprint/nbis/mindtct/shape.c:263:13: warning: Potential leak of memory pointed to by 'shape'
            fprintf(stderr,
            ^~~~~~~
parent a218437c
......@@ -260,6 +260,7 @@ int shape_from_contour(SHAPE **oshape, const int *contour_x,
if(row->npts >= row->alloc){
/* This should never happen becuase we have allocated */
/* based on shape bounding limits. */
free(shape);
fprintf(stderr,
"ERROR : shape_from_contour : row overflow\n");
return(-260);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment