Yet another Dynarr leak in redisplay
Jerry James
james at xemacs.org
Thu Jun 22 19:01:24 EDT 2006
I just sent a patch to xemacs-patches to fix a Dynarr leak in redisplay.
Here's another one, but I'm not sure what to do with it. This leak
affects both 21.4 and 21.5. In redisplay.c, look at the macro
ADD_NEXT_OCTAL_RUNE_CHAR. Note that, if prop is NULL, it is set to a
freshly created Dynarr by this macro. The macro is used in the function
add_octal_runes, which is just below it. At the end of that function,
nothing is done with prop. It is not returned and, more to the point,
it is not freed. It looks like the callers of add_octal_runes expected
prop to be returned to them. However, I don't understand this code at
all, so I'm afraid to touch it. Does anybody know what's going on here?
--
Jerry James, Assistant Professor james at xemacs.org
Computer Science Department http://www.cs.usu.edu/~jerry/
Utah State University
More information about the XEmacs-Beta
mailing list