Ticket #10383: 0001-Fix-Coverity-CID-1108465-Use-after-free.patch

File 0001-Fix-Coverity-CID-1108465-Use-after-free.patch, 676 bytes (added by noryb009, 10 years ago)
  • src/kits/storage/PathMonitor.cpp

    From 396dfb4d2981d5e8f5bac4b5b509f0340a99b037 Mon Sep 17 00:00:00 2001
    From: noryb009 <noryb009@hotmail.com>
    Date: Sun, 5 Jan 2014 21:14:45 -0500
    Subject: [PATCH] Fix Coverity CID 1108465:  Use after free
    
    ---
     src/kits/storage/PathMonitor.cpp | 1 +
     1 file changed, 1 insertion(+)
    
    diff --git a/src/kits/storage/PathMonitor.cpp b/src/kits/storage/PathMonitor.cpp
    index e0cbac1..03c3356 100644
    a b BPathMonitor::StartWatching(const char* path, uint32 flags,  
    20432043            sWatchers->Remove(watcher);
    20442044            delete watcher;
    20452045        }
     2046        return status;
    20462047    }
    20472048
    20482049    watcher->Insert(handler);