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);

--
redhat-lspp mailing list
[email protected]
https://www.redhat.com/mailman/listinfo/redhat-lspp

Reply via email to