tomk@ur-laser.UUCP (Tom Kessler) (08/11/86)
I don't know whether this belongs right here or has been reported yet but rdiff (part of RCS) dumps core when compiled on suns running revision 3.0 of Sun's software do memory allocation problems. I believe we have release 3 of RCS. Everything ran fine under Sun's revision 1.2 but when we upgraded to 3.0 rdiff dumped core. The following fix to the file diff.c seemed to fix things. --Tom Kessler *** diff.c Mon Aug 11 13:40:44 1986 --- diff.c.ORIG Thu Dec 19 15:17:18 1985 *************** *** 193,198 { register char *q; char *realloc(); dummy = malloc(1); q = realloc(p, (unsigned)n); if(q==NULL) --- 193,200 ----- { register char *q; char *realloc(); + free(p); + free(dummy); dummy = malloc(1); q = realloc(p, (unsigned)n); if(q==NULL)