
/*
 *	Function	FreeFullInfo
 *	Programmer	N.d'Alterio
 *	Date		13/09/95
 *
 *  Synopsis:	Frees memory allocated in FullSpoolInfo. fi is made
 *		NULL after this function to avoid multiple deallocations. 
 *
 *  Arguments:	struct *fi			Full Info struct/linked list to free
 *
 *  Returns:					None.
 *
 *  Variables:	*next_fi			Pointer to next FullInfo			
 * 
 *  Functions:	FreeMem				Frees memory (EXEC)
 *
 *  $Id: FreeFullInfo.c 2.2 1995/09/24 16:57:04 daltern Exp $
 *
 */

#include "SpoolWatch.h"

void FreeFullInfo( struct FullInfo *fi )

{

  struct FullInfo *next_fi;
 
/*
 *   Free FullInfo structures while they exist. 
 */

  while ( fi ) {

	next_fi = fi->fi_next;
	FreeMem( fi, sizeof( struct FullInfo ) );
	fi = next_fi;

  }   /* end while fi */

  return;

}   /* end function FreeFullInfo */

/*========================================================================*
                        END FUNCTION FreeFullInfo
 *========================================================================*/