提交 6272a7d0 编写于 作者: J Jim Meyering

Plug saslUsernameWhitelist leak.

* qemud/qemud.c (qemudCleanup): Free the array as well as
the strings in it.
上级 cd6eefd3
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) { ...@@ -1661,6 +1661,7 @@ static void qemudCleanup(struct qemud_server *server) {
free(*list); free(*list);
list++; list++;
} }
free(server->saslUsernameWhitelist);
} }
#endif #endif
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册