This function contained a code path that allocated
the buffer for the chunk table and then returned an error
(due to a failing fstat()) without freeing the chunk table
buffer.
struct stat statbuf;
struct timeval now;
+ mmd->afd.afhi.chunk_table = NULL;
ret = recv_afs_msg(&passed_fd, &afs_code, &afs_data);
if (ret < 0)
goto err;
tv_add(&now, &announce_tv, &data_send_barrier);
return;
err:
+ free(mmd->afd.afhi.chunk_table);
if (passed_fd >= 0)
close(passed_fd);
PARA_ERROR_LOG("%s\n", para_strerror(-ret));