summaryrefslogtreecommitdiff
path: root/src/target/algorithm.c
diff options
context:
space:
mode:
authormifi <mifi@b42882b7-edfa-0310-969c-e2dbd0fdcd60>2007-12-18 21:20:28 +0000
committermifi <mifi@b42882b7-edfa-0310-969c-e2dbd0fdcd60>2007-12-18 21:20:28 +0000
commit02f3765351c9e25185b745b84f1a2604fb2149c7 (patch)
tree81331db01e68baf67bc2cc271b1f1ed2a6962d76 /src/target/algorithm.c
parented1e9d6abdece4fbf6251a11f0eca3c921221048 (diff)
downloadopenocd+libswd-02f3765351c9e25185b745b84f1a2604fb2149c7.tar.gz
openocd+libswd-02f3765351c9e25185b745b84f1a2604fb2149c7.tar.bz2
openocd+libswd-02f3765351c9e25185b745b84f1a2604fb2149c7.tar.xz
openocd+libswd-02f3765351c9e25185b745b84f1a2604fb2149c7.zip
- added patch for new flash functionality like:
flash verify_image and flash erase_address. - added patch for new parport_write_on_exit command. Even this patch will fix some memory leaks. (thanks too oyvind and Spen for these patches) git-svn-id: svn://svn.berlios.de/openocd/trunk@240 b42882b7-edfa-0310-969c-e2dbd0fdcd60
Diffstat (limited to 'src/target/algorithm.c')
-rw-r--r--src/target/algorithm.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/target/algorithm.c b/src/target/algorithm.c
index c5ee4708..c4450ac1 100644
--- a/src/target/algorithm.c
+++ b/src/target/algorithm.c
@@ -41,6 +41,7 @@ void init_mem_param(mem_param_t *param, u32 address, u32 size, enum param_direct
void destroy_mem_param(mem_param_t *param)
{
free(param->value);
+ param->value = NULL;
}
void init_reg_param(reg_param_t *param, char *reg_name, u32 size, enum param_direction direction)
@@ -54,4 +55,5 @@ void init_reg_param(reg_param_t *param, char *reg_name, u32 size, enum param_dir
void destroy_reg_param(reg_param_t *param)
{
free(param->value);
+ param->value = NULL;
}