diff options
author | Thomas White <taw@physics.org> | 2011-11-14 15:29:07 +0100 |
---|---|---|
committer | Thomas White <taw@physics.org> | 2012-02-22 15:27:39 +0100 |
commit | 1bad219c3b968142fdeb686bad04b4b706c4368f (patch) | |
tree | 3d6d9d409df627da9f7de5db8e8f9b6b59420456 /src/hdf5-file.c | |
parent | 42e6b6387fc6e166bd493360ec89dda83ed9c2c6 (diff) |
Free "copy HDF5 field" list
Diffstat (limited to 'src/hdf5-file.c')
-rw-r--r-- | src/hdf5-file.c | 11 |
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) { |