Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Marcus Andersson
aurweb
Commits
48957ef5
Commit
48957ef5
authored
Feb 05, 2011
by
Lukas Fleischer
Browse files
Fix memory leak in aurblup.
Signed-off-by:
Lukas Fleischer
<
archlinux@cryptocrack.de
>
parent
400d7845
Changes
1
Hide whitespace changes
Inline
Side-by-side
scripts/aurblup/aurblup.c
View file @
48957ef5
...
...
@@ -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
[])
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment