Revision c81e8439 som/Tests/chunk_sending_test.c

View differences:

som/Tests/chunk_sending_test.c
97 97
    c.id = 666;
98 98
    c.timestamp = 1000000000ULL;
99 99
    c.size = strlen("ciao") + 1;
100
    c.data = (uint8_t *)"ciao";
100
    c.data = strdup("ciao");
101 101
    c.attributes_size = 0;
102 102

  
103 103
    dst = create_node(dst_ip, dst_port);
104 104
    sendChunk(dst, &c);
105
    free(c.data);
105 106
  } else {
106 107
    /* Receive a chunk and print it! */
107 108
    int res;

Also available in: Unified diff