_csi_intern_string: if (istring == NULL) { istring = _csi_perm_alloc (ctx, sizeof (csi_intern_string_t) + len + 1); _csi_perm_alloc is where the fun happens! (cleaned up a bit) csi_chunk_t *chunk = _csi_alloc (ctx, sizeof (csi_chunk_t) + chunk_size); chunk->ptr = (char *) (chunk + 1); ptr = chunk->ptr; return ptr; in _csi_intern_string , if _csi_hash_table_insert fails: _csi_free (ctx, istring); so basically it does malloc(something) and free(something + sizeof(csi_chunk_t)).
I meant to say free(malloc(something) + sizeof(csi_chunk_t))
-- GitLab Migration Automatic Message -- This bug has been migrated to freedesktop.org's GitLab instance and has been closed from further activity. You can subscribe and participate further through the new bug through this link to our GitLab instance: https://gitlab.freedesktop.org/cairo/cairo/issues/5.
Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.