summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Gorse <mgorse@suse.com>2012-12-06 09:50:18 -0600
committerMike Gorse <mgorse@suse.com>2012-12-06 09:50:18 -0600
commitc3ec6dc427d1c66e4d42fb82938c4534455b15f2 (patch)
tree8482384ad738804a7feadcef61d2024cd3df12a3
parent8a003957693f41d75e6291342a1b16434677f027 (diff)
downloadat-spi2-core-c3ec6dc427d1c66e4d42fb82938c4534455b15f2.tar.gz
Remove the correct datum when clearing a hung process
When clearing hung processes, we were passing the wrong variable to g_list_remove, meaning that the datum would never be removed from the list, even though it had been freed, resulting in a crash.
-rw-r--r--registryd/deviceeventcontroller.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/registryd/deviceeventcontroller.c b/registryd/deviceeventcontroller.c
index 2d5a8946..2aa415a9 100644
--- a/registryd/deviceeventcontroller.c
+++ b/registryd/deviceeventcontroller.c
@@ -1218,7 +1218,7 @@ reset_hung_process_from_ping (DBusPendingCall *pending, void *data)
if (!strcmp (l->data, data))
{
g_free (l->data);
- hung_processes = g_slist_remove (hung_processes, data);
+ hung_processes = g_slist_remove (hung_processes, l->data);
break;
}
}