projects
/
fw
/
openocd
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
flash/nor/nrf5: check protection before flash erase/write on nRF51
[fw/openocd]
/
src
/
flash
/
nor
/
at91sam3.c
diff --git
a/src/flash/nor/at91sam3.c
b/src/flash/nor/at91sam3.c
index 1e2a074aa80b122892eb0c941bfb34dff3e82695..c9baffc708916e95ad5d53787b1b1ba293e0f1b6 100644
(file)
--- a/
src/flash/nor/at91sam3.c
+++ b/
src/flash/nor/at91sam3.c
@@
-3530,8
+3530,7
@@
static int sam3_write(struct flash_bank *bank,
LOG_DEBUG("Done!");
r = ERROR_OK;
done:
- if (pagebuffer)
- free(pagebuffer);
+ free(pagebuffer);
return r;
}