Changeset 4558


Ignore:
Timestamp:
07/27/08 17:05:01 (5 years ago)
Author:
tick
Message:

opkg: balance the installed_files reference count

reducing some memory leaks

Location:
trunk/src/target/opkg/libopkg
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/target/opkg/libopkg/opkg_install.c

    r4488 r4558  
    507507               } 
    508508          } 
    509      } 
     509          pkg_free_installed_files(old_pkg); 
     510     } 
     511     pkg_free_installed_files(new_pkg); 
    510512     return 0; 
    511513} 
  • trunk/src/target/opkg/libopkg/pkg.c

    r4466 r4558  
    17381738               file_hash_set_file_owner(conf, installed_file, pkg); 
    17391739          } 
     1740          pkg_free_installed_files(pkg); 
    17401741     } 
    17411742     pkg_vec_free(installed_pkgs); 
  • trunk/src/target/opkg/libopkg/pkg_extract.c

    r4357 r4558  
    137137                    fputs(data_file, file); 
    138138               } 
     139               free(line); 
     140               line=NULL; 
    139141          } 
    140142     } 
Note: See TracChangeset for help on using the changeset viewer.