add: if (fifo_stream){ fclose(fifo_stream); fifo_stream=0;  if (fifo && strlen(fifo)){ if (unlink(fifo)<0){ LOG(L_ERR, "WARNING: destroy_fifo: cannot delete fifo (%s):" " %s\n", fifo, strerror(errno)); } } }
context: void destroy_fifo(){	struct fifo_command *c, *foo;	c=cmd_list;	while(c) {		foo=c->next;		pkg_free(c);		c=foo;	}}