• spiiroin's avatar
    [config] Fix handling of hidden modes setting · 20abe602
    spiiroin authored
    The make_hidden_modes_string() function claims to return const string,
    but that is true only as an exception to the rule. Since the callers of
    the function do not release dynamic memory, this leads to leakage. Also
    if no mode is hidden, request to unhide something least to that mode
    getting hidden and hiding something already hidden returns NULL which
    is rather unintuitive.
    
    Fix make_hidden_modes_string() and make all callers of it to release
    dynamically reserved memory / deal with possible null return value.
    Signed-off-by: spiiroin's avatarSimo Piiroinen <simo.piiroinen@jollamobile.com>
    20abe602
Name
Last commit
Last update
config Loading commit data...
debian Loading commit data...
docs Loading commit data...
openembedded Loading commit data...
rpm Loading commit data...
src Loading commit data...
systemd Loading commit data...
utils Loading commit data...
.gitignore Loading commit data...
Copyright Loading commit data...
LICENSE Loading commit data...
Makefile.am Loading commit data...
README.md Loading commit data...
TODO Loading commit data...
autogen.sh Loading commit data...
configure.ac Loading commit data...
usb-moded.ini Loading commit data...
usb_moded.pc.in Loading commit data...