Close files before deleting them for compatibility with MS-Windows
authorJ. Ali Harlow <ali@juiblex.co.uk>
Fri Jan 09 16:35:09 2009 +0000 (2009-01-09)
changeset 3410a11e755ccda
parent 340 5962a461a5a3
child 342 d335ae172331
Close files before deleting them for compatibility with MS-Windows
librazor/root.c
     1.1 --- a/librazor/root.c	Fri Jan 09 15:28:50 2009 +0000
     1.2 +++ b/librazor/root.c	Fri Jan 09 16:35:09 2009 +0000
     1.3 @@ -230,8 +230,8 @@
     1.4  	assert (root != NULL);
     1.5  
     1.6  	razor_set_destroy(root->system);
     1.7 +	close(root->fd);
     1.8  	unlink(root->new_path);
     1.9 -	close(root->fd);
    1.10  	free(root);
    1.11  
    1.12  	return 0;