From 48957ef5d5f38613957cc0fc29c402023cb4276c Mon Sep 17 00:00:00 2001 From: Lukas Fleischer Date: Sat, 5 Feb 2011 19:30:06 +0100 Subject: Fix memory leak in aurblup. Signed-off-by: Lukas Fleischer --- scripts/aurblup/aurblup.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/scripts/aurblup/aurblup.c b/scripts/aurblup/aurblup.c index 2ecfb7b8..8cf49e07 100644 --- a/scripts/aurblup/aurblup.c +++ b/scripts/aurblup/aurblup.c @@ -182,6 +182,8 @@ read_config(const char *fn) void init(void) { + if (mysql_library_init(0, NULL, NULL)) + mysql_die("could not initialize MySQL library: %s\n"); if (!(c = mysql_init(NULL))) mysql_die("failed to setup MySQL client: %s\n"); if (!mysql_real_connect(c, mysql_host, mysql_user, mysql_passwd, @@ -207,6 +209,7 @@ cleanup(void) alpm_release(); mysql_close(c); + mysql_library_end(); } int main(int argc, char *argv[]) -- cgit v1.2.3-24-g4f1b