Module: xenomai-forge Branch: master Commit: 96d5c6d83b42cb8fcf1b958a044b00d2db6cb733 URL: http://git.xenomai.org/?p=xenomai-forge.git;a=commit;h=96d5c6d83b42cb8fcf1b958a044b00d2db6cb733
Author: Philippe Gerum <r...@xenomai.org> Date: Wed Jun 5 17:17:22 2013 +0200 psos/tm: invalidate magic word upon timer object deletion --- lib/psos/tm.c | 1 + 1 files changed, 1 insertions(+), 0 deletions(-) diff --git a/lib/psos/tm.c b/lib/psos/tm.c index 2df8739..febcd10 100644 --- a/lib/psos/tm.c +++ b/lib/psos/tm.c @@ -62,6 +62,7 @@ objid_error: static void delete_timer(struct psos_tm *tm) { + tm->magic = ~tm_magic; /* Prevent further reference. */ timerobj_destroy(&tm->tmobj); pvlist_remove(&tm->link); pvfree(tm); _______________________________________________ Xenomai-git mailing list Xenomai-git@xenomai.org http://www.xenomai.org/mailman/listinfo/xenomai-git