Fixing the memory leak intruduced by my previous patch. Thanks to Ithamar for pointing this out.

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@37325 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Wim van der Meer
2010-07-01 12:13:26 +00:00
parent 89e73c2bbc
commit ac40d7205b
@@ -765,7 +765,7 @@ publish_devices()
{
TRACE((DRIVER_NAME": publish_devices()\n"));
if (gDeviceNames) {
for (int32 i = 1; gDeviceNames[i]; i++)
for (int32 i = 0; gDeviceNames[i]; i++)
free(gDeviceNames[i]);
free(gDeviceNames);
gDeviceNames = NULL;