cvs commit: ALFS/nALFS/src/handlers remove.c

jamie at linuxfromscratch.org jamie at linuxfromscratch.org
Fri Jan 30 13:55:43 PST 2004


jamie       04/01/30 14:55:43

  Modified:    nALFS/src/handlers remove.c
  Log:
  clean up exit code to make it obvious what happens when we exit prematurely through error
  
  Revision  Changes    Path
  1.15      +5 -1      ALFS/nALFS/src/handlers/remove.c
  
  Index: remove.c
  ===================================================================
  RCS file: /home/cvsroot/ALFS/nALFS/src/handlers/remove.c,v
  retrieving revision 1.14
  retrieving revision 1.15
  diff -u -r1.14 -r1.15
  --- remove.c	30 Jan 2004 20:38:19 -0000	1.14
  +++ remove.c	30 Jan 2004 21:55:43 -0000	1.15
  @@ -167,7 +167,11 @@
   		xfree(name);
       	}
   
  -	xfree(name);
  +     	// if we had to exit prematurely from an if test then free name
  +      
  +        if (status) {
  +		xfree(name);
  +	}
   
   	return status;
   }
  
  
  



More information about the alfs-log mailing list