forked from osmocom/wireshark
Plug a memory leak introduced with r44239. Resolves Coverity CID 714243: Unused pointer value.
svn path=/trunk/; revision=44265
This commit is contained in:
parent
c7b5c1eabb
commit
230c57e6ec
|
@ -1578,7 +1578,6 @@ init_prefs(void)
|
|||
prefs.capture_show_info = FALSE;
|
||||
prefs.capture_columns = NULL;
|
||||
for (i = 0; i < num_capture_cols; i++) {
|
||||
col_name = (gchar *) g_malloc(sizeof(gchar) * COL_MAX_LEN);
|
||||
col_name = g_strdup(capture_cols[i]);
|
||||
prefs.capture_columns = g_list_append(prefs.capture_columns, col_name);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue