mirror of
https://gitlab.freedesktop.org/libfprint/libfprint.git
synced 2025-11-15 07:38:12 +00:00
mindtct: Fix memory leak in error path in find_neighbors()
libfprint/nbis/mindtct/ridges.c:284:13: warning: Potential leak of memory pointed to by 'nbr_list'
free(nbr_sqr_dists);
^~~~
This commit is contained in:
@@ -281,6 +281,7 @@ int find_neighbors(int **onbr_list, int *onnbrs, const int max_nbrs,
|
||||
if((ret = update_nbr_dists(nbr_list, nbr_sqr_dists, &nnbrs, max_nbrs,
|
||||
first, second, minutiae))){
|
||||
free(nbr_sqr_dists);
|
||||
free(nbr_list);
|
||||
return(ret);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user