Expand a comment.

Change-Id: I4b040665582ec1fd3f97b915b3819ff2d8850a6f
Reviewed-on: https://code.wireshark.org/review/20315
Reviewed-by: Guy Harris <guy@alum.mit.edu>
This commit is contained in:
Guy Harris 2017-02-28 11:34:50 -08:00
parent 3c6900f31f
commit 82b2d8b4e5
1 changed files with 3 additions and 1 deletions

View File

@ -524,7 +524,9 @@ static gboolean add_attribute(Radius_scanner_state_t* state, const gchar* name,
if (g_strcmp0(a->name, name) != 0) {
/*
* Yes. Steal the entry from the by-name hash table
* and re-insert it with the new name.
* and re-insert it with the new name. (Don't
* remove it - that calls the free routine, which
* frees up the entry.)
*/
g_hash_table_steal(state->dict->attrs_by_name, (gpointer) (a->name));
g_free((gpointer) a->name);