[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]
[redhat-lspp] device allocator patch: double free
- From: Debora Velarde <dvelarde us ibm com>
- To: chanson TrustedCS com, colmo TrustedCS com
- Cc: redhat-lspp redhat com
- Subject: [redhat-lspp] device allocator patch: double free
- Date: Tue, 27 Jun 2006 18:18:15 -0700
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);
[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]