source: trunk/package/opkg/patches/030-fix-double-free.patch @ 28458

Last change on this file since 28458 was 28458, checked in by jow, 5 years ago

[package] opkg: fix a double free of pkg vectors when recursively removing packages due to --autoremove

File size: 319 bytes
  • libopkg/opkg_remove.c

    a b opkg_remove_dependent_pkgs(pkg_t *pkg, a 
    138138    for (i = 0; i < dependent_pkgs->len; i++) { 
    139139        err = opkg_remove_pkg(dependent_pkgs->pkgs[i],0); 
    140140        if (err) { 
    141             pkg_vec_free(dependent_pkgs); 
    142141            break; 
    143142        } 
    144143    } 
Note: See TracBrowser for help on using the repository browser.