Mercurial > projects > libpws
comparison pws-record.c @ 8:956e97003bad
Fix size of object to be free'd
author | Guido Berhoerster <guido+libpws@berhoerster.name> |
---|---|
date | Tue, 30 Jul 2019 14:42:35 +0200 |
parents | d541e748cfd8 |
children |
comparison
equal
deleted
inserted
replaced
7:7fd61c245bbd | 8:956e97003bad |
---|---|
37 } | 37 } |
38 | 38 |
39 for (i = 0x01; i <= 0xff; i++) { | 39 for (i = 0x01; i <= 0xff; i++) { |
40 pws3_field_destroy(record->fields[i]); | 40 pws3_field_destroy(record->fields[i]); |
41 } | 41 } |
42 pws_free(record, sizeof (record)); | 42 pws_free(record, sizeof (struct pws3_record)); |
43 } | 43 } |
44 | 44 |
45 struct pws3_record * | 45 struct pws3_record * |
46 pws3_record_create(void) | 46 pws3_record_create(void) |
47 { | 47 { |