Mercurial > projects > libpws
changeset 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 | 7fd61c245bbd |
children | ec5c1b653ee6 |
files | pws-record.c |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/pws-record.c Tue Jul 30 14:31:58 2019 +0200 +++ b/pws-record.c Tue Jul 30 14:42:35 2019 +0200 @@ -39,7 +39,7 @@ for (i = 0x01; i <= 0xff; i++) { pws3_field_destroy(record->fields[i]); } - pws_free(record, sizeof (record)); + pws_free(record, sizeof (struct pws3_record)); } struct pws3_record *