summaryrefslogtreecommitdiffstats
path: root/tests/units/test_0027_get_hardware.py
diff options
context:
space:
mode:
authorJose M. Guisado <jguisado@soleta.eu>2021-02-24 14:19:32 +0100
committerOpenGnSys Support Team <soporte-og@soleta.eu>2021-02-24 14:33:22 +0100
commit76e6375720d12a7784e4784bb08b2e0050bdcf45 (patch)
treec4756786b0f177f41e5d4e71f35e612156a94a70 /tests/units/test_0027_get_hardware.py
parent1c52b78e72dade90f23cf9d41e7700648a10eee6 (diff)
#1004 Fix memleak in og_cmd_images
image_json object is created to store the json representation of an image returned by the database. This object is going to be appended to a json list that will compose the overall root json object. Use json_array_append_new to let "images" steal the reference of image_json so when further decref(root) there is no json reference hanging around.
Diffstat (limited to 'tests/units/test_0027_get_hardware.py')
0 files changed, 0 insertions, 0 deletions