Plug saslUsernameWhitelist leak.

* qemud/qemud.c (qemudCleanup): Free the array as well as
the strings in it.
This commit is contained in:
Jim Meyering 2008-03-03 13:17:05 +00:00
parent cd6eefd3e8
commit 6272a7d0c2
2 changed files with 5 additions and 0 deletions

View File

@ -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.

View File

@ -1661,6 +1661,7 @@ static void qemudCleanup(struct qemud_server *server) {
free(*list);
list++;
}
free(server->saslUsernameWhitelist);
}
#endif