mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-01-22 04:25:18 +00:00
Plug saslUsernameWhitelist leak.
* qemud/qemud.c (qemudCleanup): Free the array as well as the strings in it.
This commit is contained in:
parent
cd6eefd3e8
commit
6272a7d0c2
@ -1,5 +1,9 @@
|
||||
Mon Mar 3 14:14:03 CET 2008 Jim Meyering <meyering@redhat.com>
|
||||
|
||||
Plug saslUsernameWhitelist leak.
|
||||
* qemud/qemud.c (qemudCleanup): Free the array as well as
|
||||
the strings in it.
|
||||
|
||||
Plug skipped-qemudCleanup leak.
|
||||
* qemud/qemud.c (main): Call qemudCleanup also upon failure.
|
||||
Otherwise, an error return would skip it and induce leaks.
|
||||
|
@ -1661,6 +1661,7 @@ static void qemudCleanup(struct qemud_server *server) {
|
||||
free(*list);
|
||||
list++;
|
||||
}
|
||||
free(server->saslUsernameWhitelist);
|
||||
}
|
||||
#endif
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user