aboutsummaryrefslogtreecommitdiff
path: root/src/hdf5-file.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/hdf5-file.c')
-rw-r--r--src/hdf5-file.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/hdf5-file.c b/src/hdf5-file.c
index 6215cc5c..355e97f1 100644
--- a/src/hdf5-file.c
+++ b/src/hdf5-file.c
@@ -565,6 +565,17 @@ struct copy_hdf5_field *new_copy_hdf5_field_list()
}
+void free_copy_hdf5_field_list(struct copy_hdf5_field *n)
+{
+ int i;
+ for ( i=0; i<n->n_fields; i++ ) {
+ free(n->fields[i]);
+ }
+ free(n->fields);
+ free(n);
+}
+
+
void add_copy_hdf5_field(struct copy_hdf5_field *copyme,
const char *name)
{