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,
|
2043 | 2043 | sWatchers->Remove(watcher); |
2044 | 2044 | delete watcher; |
2045 | 2045 | } |
| 2046 | return status; |
2046 | 2047 | } |
2047 | 2048 | |
2048 | 2049 | watcher->Insert(handler); |