Revision 4246a9b9 som/Tests/chunk_sending_test.c

View differences:

som/Tests/chunk_sending_test.c
102 102

  
103 103
    dst = create_node(dst_ip, dst_port);
104 104
    sendChunk(dst, &c);
105
    nodeid_free(dst);
105 106
    free(c.data);
106 107
  } else {
107 108
    /* Receive a chunk and print it! */
......
119 120
    res = decodeChunk(&c, buff + 1, res);
120 121
    fprintf(stdout, "Decoding: %d\n", res);
121 122
    chunk_print(stdout, &c);
123
    free(c.data);
124
    nodeid_free(remote);
122 125
  }
126
  nodeid_free(my_sock);
123 127

  
124 128
  return 0;
125 129
}

Also available in: Unified diff