path: root/memdebug/memdebug.c
diff options
authorMarco Graf <>2010-11-12 13:53:20 +0000
committerTobias Klauser <>2010-11-12 16:46:22 +0100
commit9bff9896a6060cdc6c74a31e32577855f1a7ddb6 (patch)
tree49ed4502342aeb712591b12e59c8d2540f030eef /memdebug/memdebug.c
parent936b0d63d12b433ad5667f2b4b124c994326e9aa (diff)
Bug in function 'memdebug_cleanup' corrected (access just freed struct)
git-svn-id: bb4c1ae6-6eb5-4d93-a66e-2307d6765a9c
Diffstat (limited to 'memdebug/memdebug.c')
1 files changed, 7 insertions, 2 deletions
diff --git a/memdebug/memdebug.c b/memdebug/memdebug.c
index 887ca42..b0af5b1 100644
--- a/memdebug/memdebug.c
+++ b/memdebug/memdebug.c
@@ -7,6 +7,10 @@
* Copyright (c) 2010 Zurich University of Applied Sciences
* Copyright (c) 2010 Tobias Klauser <>
+ * 12.11.2010 gram Bug in function 'memdebug_cleanup' corrected (access
+ * just freed struct)
+ *
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
@@ -44,11 +48,12 @@ void memdebug_start(void)
void memdebug_cleanup(void)
- struct memdebug_heap_item *hi;
+ struct memdebug_heap_item *hi, *next;
- for (hi = heap_head; hi; hi = hi->next) {
+ for (hi = heap_head; hi; hi = next) {
if (hi->addr)
+ next = hi->next;
td>Hans de Goede1-6/+6 2015-12-02Merge branch 'fix/sun4i-codec' of git:// Brown1-13/+14 2015-12-01ASoC: sun4i-codec: pass through clk_set_rate errorMaxime Ripard1-3/+4 2015-12-01ASoC: sunxi: Remove useless comments and variableMaxime Ripard1-22/+0 2015-11-30ASoC: sun4i: Implement MIC1 captureMaxime Ripard1-31/+197 2015-11-05ASoC: sun4i-codec: use consistent names for PA controlsAdam Sampson1-13/+14 2015-10-07ASoC: sun4i-codec: Remove the routing propertyMaxime Ripard1-7/+0 2015-09-30ASoC: sun4i-codec: Remove redundant SND_PCM_RATE_KNOTMaxime Ripard1-2/+1 2015-09-30ASoC: sun4i-codec: pass through clk_set_rate errorMaxime Ripard1-3/+4 2015-09-17ASoC: sunxi: fix platform_no_drv_owner.cocci warningskbuild test robot1-1/+0 2015-09-16ASoC: sunxi: add support for the on-chip codec on early Allwinner SoCsEmilio López3-0/+733