strings we pass up to the caller through private_data are now of ep scope

this closes a few memory leaks


svn path=/trunk/; revision=19242
This commit is contained in:
Ronnie Sahlberg 2006-09-16 09:10:23 +00:00
parent ac85c4717c
commit ff901e2b0e
1 changed files with 2 additions and 3 deletions

View File

@ -1079,8 +1079,7 @@ void cb_wstr_postprocess(packet_info *pinfo, proto_tree *tree _U_,
dcerpc_info *di = (dcerpc_info *)pinfo->private_data;
dcerpc_call_value *dcv = (dcerpc_call_value *)di->call_data;
/* FIXME EPHEMERAL need to get rid of the g_strdup() and later g_free() */
dcv->private_data = g_strdup(s);
dcv->private_data = s;
}
}
@ -1145,7 +1144,7 @@ void cb_str_postprocess(packet_info *pinfo, proto_tree *tree _U_,
dcerpc_info *di = (dcerpc_info *)pinfo->private_data;
dcerpc_call_value *dcv = (dcerpc_call_value *)di->call_data;
dcv->private_data = g_strdup(s);
dcv->private_data = s;
}
}