You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I was working on fixing all memleaks i can in darktable, and i found this:
Direct leak of 12808 byte(s) in 1 object(s) allocated from:
#0 0x7ffb35bc4895 in calloc (/usr/lib/x86_64-linux-gnu/libasan.so.1+0x54895) #1 0x7ffb2e58073c (/usr/lib/x86_64-linux-gnu/libcups.so.2+0x3073c) #2 0x7ffb2e5834f0 in httpConnect2 (/usr/lib/x86_64-linux-gnu/libcups.so.2+0x334f0) #3 0x7ffb2e5739df in cupsConnectDest (/usr/lib/x86_64-linux-gnu/libcups.so.2+0x239df)
...
That happens even if the http_t* returned from cupsConnectDest() is correctly passed to httpClose().
I have checkout most recent git version: http://www.cups.org/cups.git cups-2.1,
commit cab9f68
git-svn-id: svn+ssh://src.apple.com/svn/cups/cups.org/trunk@12659 a1ca3aef-8c08-0410-bb20-df032aa958be
And looks like that the issue is still there, so i have prepared a patch.
The text was updated successfully, but these errors were encountered:
From 3d33c5927493c867f4fb64c34ef4899dc71dbc7d Mon Sep 17 00:00:00 2001
From: Roman Lebedev lebedev.ri@gmail.com
Date: Sat, 23 May 2015 17:34:49 +0300
Subject: [PATCH] cupsConnectDest(): do not leak addrlist after successful
httpConnect2()
Version: 2.0-current
CUPS.org User: lebedevri
I was working on fixing all memleaks i can in darktable, and i found this:
Direct leak of 12808 byte(s) in 1 object(s) allocated from:
#0 0x7ffb35bc4895 in calloc (/usr/lib/x86_64-linux-gnu/libasan.so.1+0x54895)
#1 0x7ffb2e58073c (/usr/lib/x86_64-linux-gnu/libcups.so.2+0x3073c)
#2 0x7ffb2e5834f0 in httpConnect2 (/usr/lib/x86_64-linux-gnu/libcups.so.2+0x334f0)
#3 0x7ffb2e5739df in cupsConnectDest (/usr/lib/x86_64-linux-gnu/libcups.so.2+0x239df)
...
That happens even if the http_t* returned from cupsConnectDest() is correctly passed to httpClose().
I have checkout most recent git version:
http://www.cups.org/cups.git cups-2.1,
commit cab9f68
git-svn-id: svn+ssh://src.apple.com/svn/cups/cups.org/trunk@12659 a1ca3aef-8c08-0410-bb20-df032aa958be
And looks like that the issue is still there, so i have prepared a patch.
The text was updated successfully, but these errors were encountered: