Don't bother freeing ping buffer

pull/77/head
Ryan Underwood 10 years ago committed by Ryan C. Underwood
parent 558c123e35
commit 9949c92c2b

@ -342,31 +342,9 @@ void ev_remove(HOST_ENTRY *h);
void add_cidr(char *); void add_cidr(char *);
void add_range(char *, char *); void add_range(char *, char *);
void print_warning(char *fmt, ...); void print_warning(char *fmt, ...);
void free_ping_buffer( void );
/*** function definitions ***/ /*** function definitions ***/
/************************************************************
Function: free_ping_buffer
*************************************************************
Inputs: void (none)
Description:
Free the ping packet buffer.
************************************************************/
void free_ping_buffer( void )
{
if (ping_buffer != NULL) {
free( ping_buffer );
}
}
/************************************************************ /************************************************************
Function: main Function: main
@ -845,12 +823,6 @@ int main( int argc, char **argv )
if( !ping_buffer ) if( !ping_buffer )
crash_and_burn( "can't malloc ping packet" ); crash_and_burn( "can't malloc ping packet" );
if ( atexit( free_ping_buffer ) < 0 )
{
perror("atexit");
exit(1);
}
signal( SIGINT, finish ); signal( SIGINT, finish );
gettimeofday( &start_time, &tz ); gettimeofday( &start_time, &tz );

Loading…
Cancel
Save