The command histogram always returns an error. $ ./src/histogram tests/test.jpg histogram: malloc: Cannot allocate memory