Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/lib/libalpm/sync.c
diff options
context:
space:
mode:
authorDan McGee <dan@archlinux.org>2012-02-29 16:47:39 -0600
committerDan McGee <dan@archlinux.org>2012-03-05 11:44:34 -0600
commit986e99a613605985f64f0e3e4c2635717931f77d (patch)
tree074a7197e1bfb2c301687873a6a6dde16ea1e683 /lib/libalpm/sync.c
parent4b384b7f0b0e840e09e3bffd2dbb59b88bdd4864 (diff)
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/sync.c')
0 files changed, 0 insertions, 0 deletions