summary refs log tree commit diff stats
path: root/docs/devel/secure-coding-practices.rst
diff options
context:
space:
mode:
authorMilica Lazarevic <milica.lazarevic@syrmia.com>2022-09-12 14:26:29 +0200
committerPhilippe Mathieu-Daudé <philmd@linaro.org>2022-10-31 11:32:07 +0100
commit22e7b52acd8ffd10478167652b291db11c9c047d (patch)
tree51d387bee32083d22666368dd5fca604e8328d53 /docs/devel/secure-coding-practices.rst
parent043dc73cbc6e9c24c061966cd40fa3c9a702b004 (diff)
downloadfocaccia-qemu-22e7b52acd8ffd10478167652b291db11c9c047d.tar.gz
focaccia-qemu-22e7b52acd8ffd10478167652b291db11c9c047d.zip
disas/nanomips: Prevent memory leaking
g_autofree attribute is added for every dynamically allocated string to
prevent memory leaking.

The implementation of the several functions that work with dynamically
allocated strings is slightly changed so we can add those attributes.

Signed-off-by: Milica Lazarevic <milica.lazarevic@syrmia.com>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Message-Id: <20220912122635.74032-19-milica.lazarevic@syrmia.com>
Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Diffstat (limited to 'docs/devel/secure-coding-practices.rst')
0 files changed, 0 insertions, 0 deletions