On Thu, Mar 04, 2010 at 02:11:04PM +0000, Christos Zoulas wrote: > Looks great! Doesn't asprintf() leak memory though? Yes. It might be useful to free it for the dup case, but I wouldn't bother freeing the memory after the database is written, given that the program will terminate immediate anyway. Joerg