aboutsummaryrefslogtreecommitdiff
path: root/dbfp.c
diff options
context:
space:
mode:
Diffstat (limited to 'dbfp.c')
-rw-r--r--dbfp.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/dbfp.c b/dbfp.c
index b36a17c..ec9543b 100644
--- a/dbfp.c
+++ b/dbfp.c
@@ -91,6 +91,15 @@ void dbfp_close(struct dbfp *dbfp)
dbfp->key = NULL;
}
+void dbfp_location_close(struct dbfp_location *location)
+{
+ if (!location)
+ return;
+
+ free(location->name);
+ free(location->id);
+}
+
int dbfp_query_location_name(struct dbfp *dbfp, char *input,
size_t *n, struct dbfp_location **locations)
{