Skip to content

Commit 1fffe1b

Browse files
committed
Appropriately Allocate Storage
1 parent 93cf334 commit 1fffe1b

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

lib/cache_redis.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -109,6 +109,7 @@ static int _mapcache_cache_redis_get(mapcache_context *ctx,
109109
freeReplyObject(reply);
110110
return MAPCACHE_CACHE_MISS;
111111
}
112+
tile->encoded_data->buf = apr_pcalloc(ctx->pool, reply->len);
112113
memcpy(tile->encoded_data->buf, reply->str, reply->len);
113114
tile->encoded_data->size = reply->len;
114115
if(tile->encoded_data->size == 0) {

0 commit comments

Comments
 (0)