diff options
author | Andrew Gregory <andrew.gregory.8@gmail.com> | 2017-05-11 00:32:01 +0200 |
---|---|---|
committer | Andrew Gregory <andrew.gregory.8@gmail.com> | 2017-05-11 00:50:34 +0200 |
commit | fb8ded213d2d5791ae2c024141f56900fc7c0e88 (patch) | |
tree | 700c3af2773626c1eeabd31ca600e6f6806da2aa /lib/libalpm/po/LINGUAS | |
parent | f132cbe14e4419b05484e6de5291df1630c0dac1 (diff) | |
download | pacman-fb8ded213d2d5791ae2c024141f56900fc7c0e88.tar.gz pacman-fb8ded213d2d5791ae2c024141f56900fc7c0e88.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>
Diffstat (limited to 'lib/libalpm/po/LINGUAS')
0 files changed, 0 insertions, 0 deletions