https://gitweb.gentoo.org/repo/gentoo.git/tree/media-libs/aalib/files/aalib-1.4_rc5-free-offset-pointer.patch --- src/aarender.c.orig +++ src/aarender.c @@ -63,10 +63,10 @@ errors[0] = calloc(1, (x2 + 5) * sizeof(int)); if (errors[0] == NULL) dither = AA_ERRORDISTRIB; - errors[0] += 3; errors[1] = calloc(1, (x2 + 5) * sizeof(int)); if (errors[1] == NULL) free(errors[0]), dither = AA_ERRORDISTRIB; + errors[0] += 3; errors[1] += 3; cur = 0; }