summaryrefslogtreecommitdiffstats
path: root/proto/PKGBUILD.proto
diff options
context:
space:
mode:
authorAndrew Gregory <andrew.gregory.8@gmail.com>2017-05-11 00:54:55 +0200
committerAllan McRae <allan@archlinux.org>2017-07-06 06:48:03 +0200
commitbcc9c417ae989ffda193083807142171c7a0190f (patch)
tree8850f30c114e01225c5eb03a253a7c92130b90fd /proto/PKGBUILD.proto
parentc44c649a5280189ea28a54b82e60fc38279fed23 (diff)
downloadpacman-bcc9c417ae989ffda193083807142171c7a0190f.tar.gz
pacman-bcc9c417ae989ffda193083807142171c7a0190f.tar.xz
alpm_list: abort on memory allocation failure
This makes it possible to detect a failure in several alpm_list functions. Previously these functions would continue after a failure, returning partial results and potentially leaking memory. Unfortunately, NULL is a valid return value for the affected functions if the input list is empty, so they still do not have a dedicated error value. Callers can at least detect an error by checking if the input list was empty. Signed-off-by: Andrew Gregory <andrew.gregory.8@gmail.com> Signed-off-by: Allan McRae <allan@archlinux.org>
Diffstat (limited to 'proto/PKGBUILD.proto')
0 files changed, 0 insertions, 0 deletions