Revision 0c3f7376

View differences:

chunk_signaling.c
148 148
    int meta_len;
149 149
    struct sig_nal *signal;
150 150
    int sig;
151
    int ret = 1;
151 152
    dprintf("\tDecoding signaling message...");
152 153
    c_set = decodeChunkSignaling(&meta, &meta_len, buff+1, buff_len-1);
153 154
    dprintf("SIG_HEADER: len: %d, of which meta: %d\n", buff_len, meta_len);
......
166 167
          int dummy;
167 168
          struct nodeID *ownerid = nodeid_undump(&(signal->third_peer),&dummy);
168 169
          bmap_received(fromid, ownerid, c_set, signal->trans_id);
170
          free(ownerid);
169 171
          break;
170 172
        }
171 173
        default:
172
          return -1;
174
          ret = -1;
173 175
    }
174
    return 1;
176
    
177
    chunkID_set_clear(c_set,0);
178
    free(c_set);
179
    free(meta);
180
    return ret;
175 181
}
176 182

  
177 183
/// ==================== ///
streaming.c
54 54
  }
55 55

  
56 56
  sendMyBufferMap(to->id, my_bmap, 0);
57

  
58
  chunkID_set_clear(my_bmap,0);
59
  free(my_bmap);
57 60
}
58 61

  
59 62
void received_chunk(struct peerset *pset, struct nodeID *from, const uint8_t *buff, int len)

Also available in: Unified diff