Changeset 1273
- Timestamp:
- 12/09/07 16:35:55 (1 year ago)
- Files:
-
- trunk/lib/trace.c (modified) (6 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/lib/trace.c
r1269 r1273 422 422 libtrace->err.err_num = TRACE_ERR_NOERROR; 423 423 strcpy(libtrace->err.problem,"Error message set\n"); 424 libtrace->format = NULL; 425 libtrace->uridata = NULL; 424 426 425 427 /* parse the URI to determine what sort of event we are dealing with */ … … 431 433 } 432 434 433 libtrace->format = NULL;434 435 for(tmp=formats_list;tmp;tmp=tmp->next) { 435 436 if (strlen(scan) == strlen(tmp->name) && … … 441 442 } 442 443 } 444 free(scan); 445 443 446 if (libtrace->format == NULL) { 444 447 trace_set_err_out(libtrace,TRACE_ERR_BAD_FORMAT, … … 447 450 } 448 451 libtrace->uridata = strdup(uridata); 449 450 452 451 453 /* libtrace->format now contains the type of uri … … 470 472 471 473 472 free(scan);473 474 libtrace->started=false; 474 475 return libtrace; … … 628 629 if (libtrace->format) 629 630 libtrace->format->fin_output(libtrace); 630 free(libtrace->uridata); 631 if (libtrace->uridata) 632 free(libtrace->uridata); 631 633 free(libtrace); 632 634 }
