diff options
author | William Joye <wjoye@cfa.harvard.edu> | 2017-04-02 18:15:37 (GMT) |
---|---|---|
committer | William Joye <wjoye@cfa.harvard.edu> | 2017-04-02 18:15:37 (GMT) |
commit | 763d537abf1164c55148ba6d9863513439d3514a (patch) | |
tree | b0a3a79ba3817381c02e68a1db3870cf795fbaf8 /tk8.6/macosx | |
parent | 42a6720b787872f2690c7add6df4b877a2c34d36 (diff) | |
download | blt-763d537abf1164c55148ba6d9863513439d3514a.zip blt-763d537abf1164c55148ba6d9863513439d3514a.tar.gz blt-763d537abf1164c55148ba6d9863513439d3514a.tar.bz2 |
plug mem leak
Diffstat (limited to 'tk8.6/macosx')
-rw-r--r-- | tk8.6/macosx/tkMacOSXWm.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tk8.6/macosx/tkMacOSXWm.c b/tk8.6/macosx/tkMacOSXWm.c index 3fb1a4f..75473bf 100644 --- a/tk8.6/macosx/tkMacOSXWm.c +++ b/tk8.6/macosx/tkMacOSXWm.c @@ -2906,7 +2906,7 @@ WmProtocolCmd( protPtr->nextPtr = wmPtr->protPtr; wmPtr->protPtr = protPtr; protPtr->interp = interp; - protPtr->command = malloc(cmdLength+1); + protPtr->command = ckalloc(cmdLength+1); strcpy(protPtr->command, cmd); } return TCL_OK; |