Bug 1215042 - Memory leak in virNetSocketNewConnectUNIX
Summary: Memory leak in virNetSocketNewConnectUNIX
Keywords:
Status: CLOSED NEXTRELEASE
Alias: None
Product: Virtualization Tools
Classification: Community
Component: libvirt
Version: unspecified
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Jiri Denemark
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks: TRACKER-bugs-affecting-libguestfs
TreeView+ depends on / blocked
 
Reported: 2015-04-24 07:49 UTC by Richard W.M. Jones
Modified: 2015-04-24 12:39 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2015-04-24 12:39:30 UTC


Attachments (Terms of Use)

Description Richard W.M. Jones 2015-04-24 07:49:36 UTC
Description of problem:

Found by valgrind:

==26726==    by 0x673CD67: __vasprintf_chk (vasprintf_chk.c:80)
==26726==    by 0x5673605: UnknownInlinedFun (stdio2.h:210)
==26726==    by 0x5673605: virVasprintfInternal (virstring.c:476)
==26726==    by 0x56736EE: virAsprintfInternal (virstring.c:497)
==26726==    by 0x5680C37: virGetUserRuntimeDirectory (virutil.c:866)
==26726==    by 0x5783A89: virNetSocketNewConnectUNIX (virnetsocket.c:572)
==26726==    by 0x57751AF: virNetClientNewUNIX (virnetclient.c:344)
==26726==    by 0x57689B3: doRemoteOpen (remote_driver.c:895)
==26726==    by 0x5769F8E: remoteConnectOpen (remote_driver.c:1195)
==26726==    by 0x57092DF: do_open (libvirt.c:1189)
==26726==    by 0x570A7BF: virConnectOpenAuth (libvirt.c:1341)

It's fairly obvious what's going on if you look at the
code for virNetSocketNewConnectUNIX.

Version-Release number of selected component (if applicable):

libvirt-1.2.14-2.fc23.x86_64

Comment 1 Jiri Denemark 2015-04-24 12:39:30 UTC
Fixed upstream by v1.2.14-292-gda4d7c3.


Note You need to log in before you can comment on or make changes to this bug.