summaryrefslogtreecommitdiffstats
path: root/lib/libalpm/add.h
diff options
context:
space:
mode:
authorDan McGee <dan@archlinux.org>2012-02-29 23:47:39 +0100
committerDan McGee <dan@archlinux.org>2012-03-05 18:44:34 +0100
commit986e99a613605985f64f0e3e4c2635717931f77d (patch)
tree074a7197e1bfb2c301687873a6a6dde16ea1e683 /lib/libalpm/add.h
parent4b384b7f0b0e840e09e3bffd2dbb59b88bdd4864 (diff)
downloadpacman-986e99a613605985f64f0e3e4c2635717931f77d.tar.gz
pacman-986e99a613605985f64f0e3e4c2635717931f77d.tar.xz
Fix a potential memory leak in filelist creation
If we begin to create a file list when loading a package, but abort because of an error to one of our goto labels, the memory used to create the file list will leak. This is because we use a set of local variables to hold the data, and thus _alpm_pkg_free() cannot clean up for us. Use the file list struct on the package object as much as possible to keep state when building the file list, thus allowing _alpm_pkg_free() to clean up any partially built data. Signed-off-by: Dan McGee <dan@archlinux.org>
Diffstat (limited to 'lib/libalpm/add.h')
0 files changed, 0 insertions, 0 deletions