surface matching: fix memory leak

pull/150/head
Beat Küng 10 years ago
parent ac5ffe3128
commit 3957fd7d6f
  1. 3
      modules/surface_matching/src/t_hash_int.cpp

@ -347,7 +347,10 @@ hashtable_int *hashtableRead(FILE* f)
{
data=malloc(dataSize);
if (!data)
{
hashtableDestroy(hashtbl);
return NULL;
}
status = fread(data, dataSize, 1, f);
}
else

Loading…
Cancel
Save