Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Print: stop leaking printer allocated&&returned by dt_get_printer_info()
Fixes following LeakSanitizer-detected leaks: Direct leak of 432 byte(s) in 1 object(s) allocated from: #0 0x7ff04e12c74f in malloc (/usr/lib/x86_64-linux-gnu/libasan.so.1+0x5474f) #1 0x7ff04df002dd in dt_get_printer_info /home/lebedevri/darktable/src/common/cups_print.c:51 #2 0x7ff02b25d4ca #3 0x7ff02b261c9a #4 0x7ff04de9ac43 in dt_lib_load_modules /home/lebedevri/darktable/src/libs/lib.c:718 #5 0x7ff04de9d512 in dt_lib_init /home/lebedevri/darktable/src/libs/lib.c:1008 #6 0x7ff04dc968c7 in dt_init /home/lebedevri/darktable/src/common/darktable.c:889 #7 0x400cb8 in main /home/lebedevri/darktable/src/main.c:24 #8 0x7ff046501b44 in __libc_start_main (/lib/x86_64-linux-gnu/libc.so.6+0x21b44) Direct leak of 432 byte(s) in 1 object(s) allocated from: #0 0x7ff04e12c74f in malloc (/usr/lib/x86_64-linux-gnu/libasan.so.1+0x5474f) #1 0x7ff04df002dd in dt_get_printer_info /home/lebedevri/darktable/src/common/cups_print.c:51 #2 0x7ff02b25d4ca #3 0x7ff02b25e3b2 #4 0x7ff04b9f0503 (/usr/lib/x86_64-linux-gnu/libgobject-2.0.so.0+0x10503)
- Loading branch information