aboutsummaryrefslogtreecommitdiff
path: root/dbfp.c
diff options
context:
space:
mode:
Diffstat (limited to 'dbfp.c')
-rw-r--r--dbfp.c13
1 files changed, 13 insertions, 0 deletions
diff --git a/dbfp.c b/dbfp.c
index ec9543b..0b41810 100644
--- a/dbfp.c
+++ b/dbfp.c
@@ -157,6 +157,19 @@ cleanup:
return err;
}
+void dbfp_departure_close(struct dbfp_departure *departure)
+{
+ if (!departure)
+ return;
+
+ free(departure->name);
+ free(departure->type);
+ free(departure->stopid);
+ free(departure->stop);
+ free(departure->direction);
+ free(departure->track);
+}
+
static int dbfp_parse(void *contents, size_t len, size_t n, void *data)
{
XML_Parser parser = (XML_Parser)data;