projects/libpws

changeset 8:956e97003bad

Fix size of object to be free'd
author Guido Berhoerster <guido+libpws@berhoerster.name>
date Tue Jul 30 14:42:35 2019 +0200 (2019-07-30)
parents 7fd61c245bbd
children ec5c1b653ee6
files pws-record.c
line diff
     1.1 --- a/pws-record.c	Tue Jul 30 14:31:58 2019 +0200
     1.2 +++ b/pws-record.c	Tue Jul 30 14:42:35 2019 +0200
     1.3 @@ -39,7 +39,7 @@
     1.4  	for (i = 0x01; i <= 0xff; i++) {
     1.5  		pws3_field_destroy(record->fields[i]);
     1.6  	}
     1.7 -	pws_free(record, sizeof (record));
     1.8 +	pws_free(record, sizeof (struct pws3_record));
     1.9  }
    1.10  
    1.11  struct pws3_record *