[redhat-lspp] device allocator patch: double free
Debora Velarde
dvelarde at us.ibm.com
Wed Jun 28 01:18:15 UTC 2006
Below is a patch for a double free bug found by Coverity.
comparison_path may have already been freed
--- dev_allocator/progs/dev_allocator_config.c.orig 2006-06-27
08:56:54.000000000 -0500
+++ dev_allocator/progs/dev_allocator_config.c 2006-06-27
09:09:23.000000000 -0500
@@ -260,7 +260,8 @@
free(comparison_path);
break;
}
- free(comparison_path);
+ if (comparison_path)
+ free(comparison_path);
dptr = dptr->next;
}
free(this_devices_path);
More information about the redhat-lspp
mailing list