projects
/
fw
/
stlink
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8b86626
)
[fix] remove invalid free
author
Fabien Le Mentec
<texane@gmail.com>
Fri, 14 Oct 2011 20:47:08 +0000
(15:47 -0500)
committer
Fabien Le Mentec
<texane@gmail.com>
Fri, 14 Oct 2011 20:47:08 +0000
(15:47 -0500)
src/stlink-sg.c
patch
|
blob
|
history
diff --git
a/src/stlink-sg.c
b/src/stlink-sg.c
index ac6a6cf81891de4b42998208cafd8abd9d27ec72..f8865e1e4e6b9e061836db44d59e6541be122303 100644
(file)
--- a/
src/stlink-sg.c
+++ b/
src/stlink-sg.c
@@
-119,9
+119,7
@@
void _stlink_sg_close(stlink_t *sl) {
if (sl) {
struct stlink_libsg *slsg = sl->backend_data;
scsi_pt_close_device(slsg->sg_fd);
- // CAUTION!? s this right?
free(slsg);
- free(sl);
}
}