|
|
@ -90,8 +90,9 @@ int search_similar_file(simdb_t *db, float maxdiff, char *path) { |
|
|
|
|
|
|
|
|
|
|
|
print_search_results(&search); |
|
|
|
print_search_results(&search); |
|
|
|
|
|
|
|
|
|
|
|
if (search.found > 0) |
|
|
|
if (search.found > 0) { |
|
|
|
FREE(search.matches); |
|
|
|
FREE(search.matches); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
return 0; |
|
|
|
return 0; |
|
|
|
} |
|
|
|
} |
|
|
@ -110,8 +111,9 @@ int search_similar_byid(simdb_t *db, float maxdiff, int num) { |
|
|
|
|
|
|
|
|
|
|
|
print_search_results(&search); |
|
|
|
print_search_results(&search); |
|
|
|
|
|
|
|
|
|
|
|
if (search.found > 0) |
|
|
|
if (search.found > 0) { |
|
|
|
FREE(search.matches); |
|
|
|
FREE(search.matches); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
return 0; |
|
|
|
return 0; |
|
|
|
} |
|
|
|
} |
|
|
|