[tracker] tracker-store: Fix possible memory corruption
- From: Philip Van Hoof <pvanhoof src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [tracker] tracker-store: Fix possible memory corruption
- Date: Mon, 3 May 2010 09:04:12 +0000 (UTC)
commit a6de795033d7502342e0f239c0dfd02052e50ef4
Author: Philip Van Hoof <philip codeminded be>
Date: Mon May 3 11:03:01 2010 +0200
tracker-store: Fix possible memory corruption
src/tracker-store/tracker-resources.c | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/src/tracker-store/tracker-resources.c b/src/tracker-store/tracker-resources.c
index 274fb29..76a14c3 100644
--- a/src/tracker-store/tracker-resources.c
+++ b/src/tracker-store/tracker-resources.c
@@ -234,7 +234,8 @@ query_callback (gpointer inthread_data, GError *error, gpointer user_data)
dbus_g_method_send_reply (info->context, ptr->reply);
}
- g_slice_free (InThreadPtr, ptr);
+ if (ptr)
+ g_slice_free (InThreadPtr, ptr);
}
static gpointer
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]