From: Matthias Wachs Date: Thu, 1 Mar 2012 17:25:42 +0000 (+0000) Subject: - memfix X-Git-Tag: initial-import-from-subversion-38251~14512 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=21bde531fcb169673d931461994a5aa1aa12e09f;p=oweals%2Fgnunet.git - memfix --- diff --git a/src/namestore/test_namestore_api_remove.c b/src/namestore/test_namestore_api_remove.c index 31631da7d..5dfdd1a01 100644 --- a/src/namestore/test_namestore_api_remove.c +++ b/src/namestore/test_namestore_api_remove.c @@ -246,10 +246,9 @@ create_record (int count) rd[0].expiration = GNUNET_TIME_absolute_get(); rd[0].record_type = 0; rd[0].data_size = TEST_REMOVE_RECORD_DATALEN; - rd[0].data = GNUNET_malloc(TEST_RECORD_DATALEN); + rd[0].data = GNUNET_malloc(TEST_REMOVE_RECORD_DATALEN); memset ((char *) rd[0].data, TEST_RECORD_DATA, TEST_RECORD_DATALEN); - for (c = 1; c < RECORDS; c++) { rd[c].expiration = GNUNET_TIME_absolute_get();