Fix Coverity CID 1108465: Use after free
Signed-off-by: Ingo Weinhold <[email protected]>
This commit is contained in:
@@ -2043,6 +2043,7 @@ BPathMonitor::StartWatching(const char* path, uint32 flags,
|
||||
sWatchers->Remove(watcher);
|
||||
delete watcher;
|
||||
}
|
||||
return status;
|
||||
}
|
||||
|
||||
watcher->Insert(handler);
|
||||
|
||||
Reference in New Issue
Block a user