Changeset 9f1b6ee
- Timestamp:
- 08/09/10 10:11:56 (11 years ago)
- Branches:
- 4.0.1-hotfixes, cachetimestamps, develop, dpdk-ndag, etsilive, getfragoff, help, libtrace4, master, ndag_format, pfring, rc-4.0.1, rc-4.0.2, rc-4.0.3, rc-4.0.4, ringdecrementfix, ringperformance, ringtimestampfixes
- Children:
- 176646e
- Parents:
- a1e177d
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
lib/format_linux.c
rc69b593 r9f1b6ee 175 175 trace_set_err(libtrace, errno, "Could not create raw socket"); 176 176 free(libtrace->format_data); 177 libtrace->format_data = NULL; 177 178 return -1; 178 179 } … … 187 188 trace_set_err(libtrace, TRACE_ERR_INIT_FAILED, "Failed to find interface %s", libtrace->uridata); 188 189 free(libtrace->format_data); 190 libtrace->format_data = NULL; 189 191 return -1; 190 192 } … … 197 199 (socklen_t)sizeof(addr))==-1) { 198 200 free(libtrace->format_data); 201 libtrace->format_data = NULL; 199 202 trace_set_err(libtrace, errno, "Failed to bind to interface %s", libtrace->uridata); 200 203 return -1; … … 305 308 static int linuxnative_fin_input(libtrace_t *libtrace) 306 309 { 307 if ( FORMAT(libtrace->format_data)->filter != NULL)308 free(FORMAT(libtrace->format_data)->filter);309 if (libtrace->format_data)310 if (libtrace->format_data) { 311 if (FORMAT(libtrace->format_data)->filter != NULL) 312 free(FORMAT(libtrace->format_data)->filter); 310 313 free(libtrace->format_data); 314 } 311 315 312 316 return 0;
Note: See TracChangeset
for help on using the changeset viewer.