diff options
author | Glenn Strauss <gstrauss@gluelogic.com> | 2017-01-24 16:14:56 -0500 |
---|---|---|
committer | Glenn Strauss <gstrauss@gluelogic.com> | 2017-01-31 14:40:05 -0500 |
commit | fb8057707c504888794e3092624982500592b061 (patch) | |
tree | 8b5e260aabf5f171952ff9eb63516376b425e558 /src | |
parent | 6c1e6e660e97318ed10360002130f03ffbc4a6ae (diff) | |
download | lighttpd-git-fb8057707c504888794e3092624982500592b061.tar.gz |
[mod_authn_mysql] fix minor memleak at shutdown
Diffstat (limited to 'src')
-rw-r--r-- | src/mod_authn_mysql.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/mod_authn_mysql.c b/src/mod_authn_mysql.c index 10f90586..e712c3f4 100644 --- a/src/mod_authn_mysql.c +++ b/src/mod_authn_mysql.c @@ -258,13 +258,13 @@ SETDEFAULTS_FUNC(mod_authn_mysql_set_defaults) { if (p->config_storage[0]) { /*(always true)*/ plugin_config *s = p->config_storage[0]; if (buffer_is_empty(s->auth_mysql_col_user)) { - s->auth_mysql_col_user = buffer_init_string("user"); + buffer_copy_string_len(s->auth_mysql_col_user, CONST_STR_LEN("user")); } if (buffer_is_empty(s->auth_mysql_col_pass)) { - s->auth_mysql_col_pass = buffer_init_string("password"); + buffer_copy_string_len(s->auth_mysql_col_pass, CONST_STR_LEN("password")); } if (buffer_is_empty(s->auth_mysql_col_realm)) { - s->auth_mysql_col_realm = buffer_init_string("realm"); + buffer_copy_string_len(s->auth_mysql_col_realm, CONST_STR_LEN("realm")); } } |