libxbps: use memcpy in critical paths for performance, fixed some memleaks.

This commit is contained in:
Juan RP
2012-06-18 10:43:05 +02:00
parent 3e93d235ff
commit c24ce8e4da
6 changed files with 28 additions and 27 deletions

View File

@ -222,9 +222,7 @@ xbps_end(struct xbps_handle *xhp)
xbps_rpool_release(xhp);
xbps_fetch_unset_cache_connection();
if (xhp->cfg != NULL)
cfg_free(xhp->cfg);
cfg_free(xhp->cfg);
free(xhp->cachedir_priv);
free(xhp->metadir_priv);
free(xhp->un_machine);