• Guillem Jover's avatar
    Fix vis family of functions to not leak · 8e2d5504
    Guillem Jover authored
    The code uses an internal helper function to avoid code repetition. But
    to get there, the function takes a pointer to a pointer, so that the few
    functions that require returning an allocated buffer can get hold of it
    this way.
    
    The problem is that the user might pass a NULL pointer and trigger an
    internal allocation even if the functions are not expected to do so.
    
    Add a new internal helper for non-allocations, that will assert that
    condition, and make any other function that requires this behavior call
    this one instead.
    
    Warned-by: coverity
    8e2d5504
Name
Last commit
Last update
include Loading commit data...
man Loading commit data...
src Loading commit data...
test Loading commit data...
.gitignore Loading commit data...
.gitlab-ci.yml Loading commit data...
COPYING Loading commit data...
Makefile.am Loading commit data...
README Loading commit data...
TODO Loading commit data...
autogen Loading commit data...
configure.ac Loading commit data...
get-version Loading commit data...