OSDN Git Service
(root)
/
qmiga
/
qemu.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
800567a
)
ossaudio: fix memory leak
author
Gonglei
<arei.gonglei@huawei.com>
Tue, 23 Jun 2015 01:01:10 +0000
(09:01 +0800)
committer
Paolo Bonzini
<pbonzini@redhat.com>
Wed, 8 Jul 2015 11:11:01 +0000
(13:11 +0200)
Variable "conf" going out of scope leaks the storage
it points to in line 856.
Signed-off-by: Gonglei <arei.gonglei@huawei.com>
Message-Id: <
1435021270
-7768-1-git-send-email-arei.gonglei@huawei.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
audio/ossaudio.c
patch
|
blob
|
history
diff --git
a/audio/ossaudio.c
b/audio/ossaudio.c
index
11e76a1
..
7dbe333
100644
(file)
--- a/
audio/ossaudio.c
+++ b/
audio/ossaudio.c
@@
-853,6
+853,7
@@
static void *oss_audio_init (void)
if (access(conf->devpath_in, R_OK | W_OK) < 0 ||
access(conf->devpath_out, R_OK | W_OK) < 0) {
+ g_free(conf);
return NULL;
}
return conf;