]> git.proxmox.com Git - mirror_qemu.git/commit - block/qapi.c
block: qapi - move string allocation from stack to the heap
authorJeff Cody <jcody@redhat.com>
Thu, 22 Jan 2015 13:03:27 +0000 (08:03 -0500)
committerKevin Wolf <kwolf@redhat.com>
Fri, 23 Jan 2015 17:17:06 +0000 (18:17 +0100)
commit564d64bdde8e0a6b732a56fa41670e73b19ee062
treef2de7e498b2166acc0f4b89220c6b9876fe84267
parentfe2065629a9c256f836770ca54449ae77b22d188
block: qapi - move string allocation from stack to the heap

Rather than declaring 'backing_filename2' on the stack in
bdrv_query_image_info(), dynamically allocate it on the heap.

Reviewed-by: John Snow <jsnow@redhat.com>
Signed-off-by: Jeff Cody <jcody@redhat.com>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
block/qapi.c