darktable-org/darktable — pull request #299 by mlq (2013-09-04 10:55:13+00:00)
Title: Resolve memory leak in noiseprofile and add additional proper error handling

Due changes in my repository, I had to recreate this pull request:

This patch resolves the memory leak of inv_hist in the main function. In addition I took some time to rewrite some other functions by adding proper error handling regarding memory allocation and I/O errors to them, but it still needs to be tested again.