Check-in [dfa8940a62]
Overview
Comment:Updated order of Incr/Decr in CVFS for consistency
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA1:dfa8940a62e2d58f52b0e2299316c819365fcfe0
User & Date: rkeene on 2014-11-17 18:43:04
Other Links: manifest | tags
Context
2014-11-17
18:43
Fixed bug in TclVFS where internal representation was used after being free'd check-in: 2bfc886173 user: rkeene tags: trunk
18:43
Updated order of Incr/Decr in CVFS for consistency check-in: dfa8940a62 user: rkeene tags: trunk
2014-11-14
21:43
Corrected memory leaks in CVFS check-in: 56c0612e71 user: rkeene tags: trunk
Changes

Modified kitsh/buildsrc/kitsh-0.0/cvfs_data.c from [2f0d8b57ce] to [c7558f05e3].

    90     90   	for (idx = 0; idx < (sizeof(ret_list_items) / sizeof(ret_list_items[0])); idx++) {
    91     91   		Tcl_IncrRefCount(ret_list_items[idx]);
    92     92   	}
    93     93   
    94     94   	ret_list = Tcl_NewListObj(sizeof(ret_list_items) / sizeof(ret_list_items[0]), ret_list_items);
    95     95   
    96     96   	Tcl_IncrRefCount(ret_list);
           97  +
           98  +	Tcl_SetObjResult(interp, ret_list);
           99  +
          100  +	Tcl_DecrRefCount(ret_list);
    97    101   
    98    102   	for (idx = 0; idx < (sizeof(ret_list_items) / sizeof(ret_list_items[0])); idx++) {
    99    103   		Tcl_DecrRefCount(ret_list_items[idx]);
   100    104   	}
   101    105   
   102         -	Tcl_SetObjResult(interp, ret_list);
   103         -
   104         -	Tcl_DecrRefCount(ret_list);
   105         -
   106    106   	return(TCL_OK);
   107    107   }
   108    108   
   109    109   static int getData(ClientData cd, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
   110    110   	struct cvfs_data *finfo = NULL;
   111    111   	cmd_getData_t *cmd_getData;
   112    112   	const char *hashkey;