diff options
author | Lukas Fleischer <archlinux@cryptocrack.de> | 2011-02-05 19:30:06 +0100 |
---|---|---|
committer | Lukas Fleischer <archlinux@cryptocrack.de> | 2011-02-11 14:43:22 +0100 |
commit | 48957ef5d5f38613957cc0fc29c402023cb4276c (patch) | |
tree | 458893858dd40f8485731649ddb666772695f296 /scripts | |
parent | 400d7845e4c959660edf4cbeb1a390c6590cc4fc (diff) | |
download | aurweb-48957ef5d5f38613957cc0fc29c402023cb4276c.tar.xz |
Fix memory leak in aurblup.
Signed-off-by: Lukas Fleischer <archlinux@cryptocrack.de>
Diffstat (limited to 'scripts')
-rw-r--r-- | scripts/aurblup/aurblup.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/scripts/aurblup/aurblup.c b/scripts/aurblup/aurblup.c index 2ecfb7b..8cf49e0 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[]) |