chiark
/
gitweb
/
~ian
/
chiark-tcl.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Fix memory and type management bugs.
[chiark-tcl.git]
/
base
/
hook.c
diff --git
a/base/hook.c
b/base/hook.c
index 0adb6b5d5804bb54e7669ef485987a69fb38a9a9..cdcb246d2c742b945ad8444faad1cd1705529b01 100644
(file)
--- a/
base/hook.c
+++ b/
base/hook.c
@@
-61,10
+61,10
@@
int do_hbytes_rep_info(ClientData cd, Tcl_Interp *ip,
}
static void hbytes_t_dup(Tcl_Obj *src, Tcl_Obj *dup) {
- objfreeir(dup);
hbytes_array(OBJ_HBYTES(dup),
hbytes_data(OBJ_HBYTES(src)),
hbytes_len(OBJ_HBYTES(src)));
+ dup->typePtr= &hbytes_type;
}
static void hbytes_t_free(Tcl_Obj *o) {