diff options
Diffstat (limited to 'dbfp.c')
-rw-r--r-- | dbfp.c | 9 |
1 files changed, 9 insertions, 0 deletions
@@ -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) { |