Plug a memory leak introduced with r44239. Resolves Coverity CID 714243: Unused pointer value.

svn path=/trunk/; revision=44265
This commit is contained in:
Chris Maynard 2012-08-04 18:57:16 +00:00
parent c7b5c1eabb
commit 230c57e6ec
1 changed files with 0 additions and 1 deletions

View File

@ -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);
}