Commit c13ee037 authored by Vadim Pisarevsky's avatar Vadim Pisarevsky

Merge pull request #150 from bkueng/fix_memory_leak

fix memory leak in surface matching module
parents b67896df 3957fd7d
......@@ -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
......
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