Skip to content

Commit

Permalink
add unlock when item_cachedump malloc failed
Browse files Browse the repository at this point in the history
  • Loading branch information
minkikim89 authored and dormando committed Aug 28, 2019
1 parent 723ca8b commit 1ab043b
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions items.c
Original file line number Diff line number Diff line change
Expand Up @@ -592,6 +592,7 @@ char *item_cachedump(const unsigned int slabs_clsid, const unsigned int limit, u

buffer = malloc((size_t)memlimit);
if (buffer == 0) {
pthread_mutex_unlock(&lru_locks[id]);
return NULL;
}
bufcurr = 0;
Expand Down

0 comments on commit 1ab043b

Please sign in to comment.