diff options
| author | Emilio G. Cota | 2016-07-25 17:03:44 +0200 |
|---|---|---|
| committer | Paolo Bonzini | 2016-08-03 18:42:35 +0200 |
| commit | 071d4054770205ddb8a58a9e2735069d8fe52af1 (patch) | |
| tree | 3004d8291f4f13c857327005942d7908123652e4 /linux-user | |
| parent | qdist: fix memory leak during binning (diff) | |
| download | qemu-071d4054770205ddb8a58a9e2735069d8fe52af1.tar.gz qemu-071d4054770205ddb8a58a9e2735069d8fe52af1.tar.xz qemu-071d4054770205ddb8a58a9e2735069d8fe52af1.zip | |
qdist: use g_renew and g_new instead of g_realloc and g_malloc.
This is safer against overflow. g_renew is available in all
version of glib, while g_realloc_n is only available in 2.24.
Signed-off-by: Emilio G. Cota <cota@braap.org>
Message-Id: <1469459025-23606-3-git-send-email-cota@braap.org>
[Rewritten to use g_new/g_renew. - Paolo]
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'linux-user')
0 files changed, 0 insertions, 0 deletions
