From d3780f3e6f24e4c65ddd11e5b99f4d85da0263d2 Mon Sep 17 00:00:00 2001 From: Alexandre Perrin Date: Sun, 11 Jun 2017 10:19:31 +0200 Subject: [PATCH] Warning comment improvement. --- lib/quirc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/quirc.c b/lib/quirc.c index 48686a4..9d1c102 100644 --- a/lib/quirc.c +++ b/lib/quirc.c @@ -38,7 +38,7 @@ void quirc_destroy(struct quirc *q) { free(q->image); /* q->pixels may alias q->image when their type representation is of the - same size, so we need to be careful here */ + same size, so we need to be careful here to avoid a double free */ if (sizeof(*q->image) != sizeof(*q->pixels)) free(q->pixels); free(q->row_average);