fix memory leak in sorting of darktablerc