OSDN Git Service

Close pci.ids file when bailing out because realloc failed
authorAlan Coopersmith <alan.coopersmith@oracle.com>
Thu, 9 Feb 2012 06:08:08 +0000 (22:08 -0800)
committerAlan Coopersmith <alan.coopersmith@oracle.com>
Thu, 9 Feb 2012 06:13:07 +0000 (22:13 -0800)
commit573b25ecd34dd69ee14c58f752bffdb5709654b9
treec1715ccb4465390be24d263ebc0c9305131b1c0f
parented6c6157bc94283ce0a8526eeff668094cf3992d
Close pci.ids file when bailing out because realloc failed

Error: File Leak
   Leaked File f
      at line 272 of src/common_device_name.c in function 'populate_vendor'.
        f initialized at line 204 with fopen("/usr/share/hwdata/pci.ids", "r").

[ This bug was found by the Parfait 0.5.0 bug checking tool.
  For more information see http://labs.oracle.com/projects/parfait/ ]

Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
src/common_device_name.c