summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorJiri Moskovcak <jmoskovc@redhat.com>2009-02-26 11:01:40 +0100
committerJiri Moskovcak <jmoskovc@redhat.com>2009-02-26 11:01:40 +0100
commit2ecf540f20e3db8594d3a3fa539d338b27b3a092 (patch)
tree9812fcd7af38386922eea51ca19ab0f71c2b6913 /src
parent48e84b9a5b82125276622110349c5291a14e7ba3 (diff)
downloadabrt-2ecf540f20e3db8594d3a3fa539d338b27b3a092.tar.gz
abrt-2ecf540f20e3db8594d3a3fa539d338b27b3a092.tar.xz
abrt-2ecf540f20e3db8594d3a3fa539d338b27b3a092.zip
Fixed some memory leaks
changed default paths
Diffstat (limited to 'src')
-rw-r--r--src/Daemon/CrashWatcher.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/Daemon/CrashWatcher.cpp b/src/Daemon/CrashWatcher.cpp
index 1cf6e1f0..1e447b0a 100644
--- a/src/Daemon/CrashWatcher.cpp
+++ b/src/Daemon/CrashWatcher.cpp
@@ -41,7 +41,8 @@ to_string( T x )
gboolean CCrashWatcher::handle_event_cb(GIOChannel *gio, GIOCondition condition, gpointer daemon){
GIOError err;
- char buf[INOTIFY_BUFF_SIZE];
+ //char *buf = malloc(INOTIFY_BUFF_SIZE;
+ char *buf = new char[INOTIFY_BUFF_SIZE];
gsize len;
int i = 0;
err = g_io_channel_read (gio, buf, INOTIFY_BUFF_SIZE, &len);
@@ -81,6 +82,7 @@ gboolean CCrashWatcher::handle_event_cb(GIOChannel *gio, GIOCondition condition,
}
#endif /*DEBUG*/
}
+ delete[] buf;
return TRUE;
}