git.haldean.org expel / e30b16a
fix uri value memory leak Haldean Brown 6 years ago
1 changed file(s) with 8 addition(s) and 0 deletion(s). Raw diff Collapse all Expand all
482482 no_ignore static xl_error
483483 _release_uri(struct xl_uri *u)
484484 {
485 xl_error err;
485486 #if XL_GC_DEBUG && XL_GC_DEBUG_V
486487 char *buf;
487488 #endif
504505 fprintf(gc_out, "free uri %s\n", buf);
505506 free(buf);
506507 #endif
508
509 if (u->as_value != NULL)
510 {
511 err = xl_release(u->as_value);
512 if (err != OK)
513 return err;
514 }
507515
508516 if (u->source != NULL)
509517 free(u->source);