]> git.feebdaed.xyz Git - 0xmirror/binutils-gdb.git/commit
libsframe: use tmp variable for realloc pattern
authorIndu Bhagat <indu.bhagat@oracle.com>
Wed, 24 Dec 2025 08:57:55 +0000 (00:57 -0800)
committerIndu Bhagat <indu.bhagat@oracle.com>
Wed, 24 Dec 2025 08:57:55 +0000 (00:57 -0800)
commit1041022101f91c7066c4407c7297aabae88b3c14
tree5a4a409e0f9490669fa3bd4481f91c536247a733
parent7ca80bc6dab4d297a2ee08a197c6480e1898add2
libsframe: use tmp variable for realloc pattern

If realloc fails, the original buffer isnt free'd otherwise.

Reviewed-by: Jens Remus <jremus@linux.ibm.com>
libsframe/
* sframe.c (sframe_encoder_add_fre): Use tmp variable.
(sframe_encoder_add_funcdesc_internal): Likewise.
libsframe/sframe.c