• Meir Shpilraien (Spielrein)'s avatar
    Fix #10705, avoid relinking the same library twice. (#10706) · 442e73ea
    Meir Shpilraien (Spielrein) authored
    Set `old_li` to NULL to avoid linking it again on error.
    Before the fix, loading an already existing library will cause the existing library to be added again. This cause not harm other then wrong statistics. The statistics that are effected  by the issue are:
    * `libraries_count` and `functions_count` returned by `function stats` command
    * `used_memory_functions` returned on `info memory` command
    * `functions.caches` returned on `memory stats` command
    442e73ea
functions.c 36.8 KB