# HG changeset patch # User Dan Nicolaescu # Date 1228163342 0 # Node ID 6ab80abea3eeb1575443b05acb8fd5e45c813780 # Parent c2ef1c8b2d64848031eb212c461392f69e6d8495 (scan_lisp_file): Use xmalloc instead of malloc. diff -r c2ef1c8b2d64 -r 6ab80abea3ee lib-src/ChangeLog --- a/lib-src/ChangeLog Mon Dec 01 20:14:43 2008 +0000 +++ b/lib-src/ChangeLog Mon Dec 01 20:29:02 2008 +0000 @@ -1,3 +1,7 @@ +2008-12-01 Dan Nicolaescu + + * make-docfile.c (scan_lisp_file): Use xmalloc instead of malloc. + 2008-11-22 Derek Peschel (tiny change) * etags.c (add_regex): Pass correct length to re_compile_pattern. diff -r c2ef1c8b2d64 -r 6ab80abea3ee lib-src/make-docfile.c --- a/lib-src/make-docfile.c Mon Dec 01 20:14:43 2008 +0000 +++ b/lib-src/make-docfile.c Mon Dec 01 20:29:02 2008 +0000 @@ -909,7 +909,7 @@ /* Read in the contents. */ if (saved_string != 0) free (saved_string); - saved_string = (char *) malloc (length); + saved_string = (char *) xmalloc (length); for (i = 0; i < length; i++) saved_string[i] = getc (infile); /* The last character is a ^_.