HCoop
/
clinton
/
Smoothieware.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5bd37b4
)
HeapRing: missed a free() in a corner case
author
Michael Moon
<triffid.hunter@gmail.com>
Wed, 15 Jan 2014 22:45:56 +0000
(09:45 +1100)
committer
Michael Moon
<triffid.hunter@gmail.com>
Wed, 15 Jan 2014 22:45:56 +0000
(09:45 +1100)
src/libs/HeapRing.cpp
patch
|
blob
|
blame
|
history
diff --git
a/src/libs/HeapRing.cpp
b/src/libs/HeapRing.cpp
index
ca92a4e
..
f3e0809
100644
(file)
--- a/
src/libs/HeapRing.cpp
+++ b/
src/libs/HeapRing.cpp
@@
-153,7
+153,8
@@
template<class kind> bool HeapRing<kind>::resize(unsigned int length)
__enable_irq();
- free(ring);
+ if (ring)
+ delete [] ring;
ring = NULL;
return true;