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>
|
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.
|
Plug skipped-qemudCleanup leak.
|
||||||
* qemud/qemud.c (main): Call qemudCleanup also upon failure.
|
* qemud/qemud.c (main): Call qemudCleanup also upon failure.
|
||||||
Otherwise, an error return would skip it and induce leaks.
|
Otherwise, an error return would skip it and induce leaks.
|
||||||
|
@ -1661,6 +1661,7 @@ static void qemudCleanup(struct qemud_server *server) {
|
|||||||
free(*list);
|
free(*list);
|
||||||
list++;
|
list++;
|
||||||
}
|
}
|
||||||
|
free(server->saslUsernameWhitelist);
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user