MCPcopy Create free account
hub / github.com/RsyncProject/rsync / unmap_file

Function unmap_file

fileio.c:317–332  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

315}
316
317int unmap_file(struct map_struct *map)
318{
319 int ret;
320
321 if (map->p) {
322 free(map->p);
323 map->p = NULL;
324 }
325 ret = map->status;
326#if 0 /* I don't think we really need this. */
327 force_memzero(map, sizeof map[0]);
328#endif
329 free(map);
330
331 return ret;
332}

Callers 4

send_filesFunction · 0.85
file_checksumFunction · 0.85
generate_and_send_sumsFunction · 0.85
receive_dataFunction · 0.85

Calls 1

force_memzeroFunction · 0.85

Tested by

no test coverage detected