commit 1cc8e7f9595db4aa8d3e79361376d1a0e7064635 from: Stefan Sperling date: Wed Mar 14 23:31:05 2018 UTC remove a useless and leaky allocation commit - 9db65d415a148f4ac83ff7a61809965bc4867f33 commit + 1cc8e7f9595db4aa8d3e79361376d1a0e7064635 blob - 61c669a831956b3a22061009e31d81ad0d368210 blob + 06e97009123ad8a83250cae46a1f7e0e4bde4d00 --- lib/pack.c +++ lib/pack.c @@ -1007,9 +1007,6 @@ add_delta_cache_entry(struct got_delta_cache *cache, o } entry = &cache->deltas[i]; - entry->delta_buf = calloc(1, delta_len); - if (entry->delta_buf == NULL) - return got_error(GOT_ERR_NO_MEM); entry->data_offset = data_offset; entry->delta_buf = delta_buf; entry->delta_len = delta_len;