Skip to content

Commit

Permalink
Don't leak memory if chunks_read_cache fails.
Browse files Browse the repository at this point in the history
Submitted by:	Pedro Ribeiro
  • Loading branch information
cperciva committed Jun 10, 2015
1 parent 241fb3b commit edfd943
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tar/multitape/multitape_chunkiter.c
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ multitape_chunkiter_tmd(STORAGE_R * S, CHUNKS_S * C,

/* We want to cache this chunk after reading it. */
if (chunks_read_cache(CR, ch->hash))
goto err2;
goto err3;

/* Read the chunk into buffer. */
if ((rc = chunks_read_chunk(CR, ch->hash, chunklen, chunkzlen,
Expand Down

0 comments on commit edfd943

Please sign in to comment.