diff --git a/library/zonedetect.c b/library/zonedetect.c index 9265c62..2f92ea6 100644 --- a/library/zonedetect.c +++ b/library/zonedetect.c @@ -1249,3 +1249,8 @@ done: ZDFreeResults(result); return output; } + +void ZDHelperSimpleLookupStringFree(char* str) +{ + free(str); +} \ No newline at end of file diff --git a/library/zonedetect.h b/library/zonedetect.h index 710cb5a..4948ac2 100644 --- a/library/zonedetect.h +++ b/library/zonedetect.h @@ -83,6 +83,7 @@ ZD_EXPORT const char *ZDGetErrorString(int errZD); ZD_EXPORT float* ZDPolygonToList(const ZoneDetect *library, uint32_t polygonId, size_t* length); ZD_EXPORT char* ZDHelperSimpleLookupString(const ZoneDetect* library, float lat, float lon); +ZD_EXPORT void ZDHelperSimpleLookupStringFree(char* str); #ifdef __cplusplus }