In file.c there seemed to be a leak. Also, the order of sons in a file is preserved wrt creation order. If we create ./a ./b then rm ./b and create ./c, the list of sons has ./a ./c. This is important for omero, where the order of files determines the order of widgets. In srv.c an incref (already marked in sources(?)) was missing.