OSDN Git Service

libpciaccess: fix memory usage errors
authorMark Logan <mark.logan@oracle.com>
Tue, 18 Sep 2012 20:28:18 +0000 (13:28 -0700)
committerAlan Coopersmith <alan.coopersmith@oracle.com>
Sat, 13 Oct 2012 00:17:53 +0000 (17:17 -0700)
commit630b00a0847df9acf53391e6415bdfcd13fdae68
tree75f67bec4f2fe749c5ac783a4de671a7812ca5c3
parent09f5b48f559888339450bb4a79d178c94da34638
libpciaccess: fix memory usage errors

This patch fixes memory usage errors that only occur on large SPARC
machines with more than 256 PCI devices. In this case, memory is being
used after it has been freed by calls to both free() and realloc().
This error was introduced by a previous patch:
2011-03-30 Solaris support for multiple PCI segments (domains)

Signed-off-by: Mark Logan <mark.logan@oracle.com>
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
src/common_init.c
src/solx_devfs.c