Overview
| Artifact ID: | 7a668d42a9fa86e16ee3d6a4866e4ec1129674d8 |
|---|---|
| Ticket: | 1518166fffffffffffffffffffffffffffffffff
Possible un-Init'd DString in latest tclWinSock.c |
| User & Date: | afredd on 2006-07-24 17:11:50 |
Changes
- icomment:
Logged In: YES user_id=1386588 >Look like the init/free balance is correct to me. What if neither of the if or 'else if' expressions is true? The code outline is: Tcl_DString ds; if ((*tclWinProcs->getComputerNameProc)(wbuf, &length) != 0) { /* Initialise ds */ } else if (TclpHasSockets(NULL) == TCL_OK) { /* Initialise ds */ } /* Use ds */ Tcl_DStringFree(&ds); Are you assuming that one of the two test expressions (in particular "TclpHasSockets(NULL)") will always be true? - login: "afredd"
- mimetype: "text/plain"
- username: "afredd"