]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
No longer need to free conf file stuff manually.
authorAlan T. DeKok <aland@freeradius.org>
Mon, 18 Feb 2013 19:07:04 +0000 (14:07 -0500)
committerAlan T. DeKok <aland@freeradius.org>
Mon, 18 Feb 2013 19:07:04 +0000 (14:07 -0500)
src/modules/rlm_sql/rlm_sql.c

index d51857f22efaf159c550f73007776871a71705e8..9d0328f626bff2185db1005d3beccacd476a1dbc 100644 (file)
@@ -814,28 +814,6 @@ static int rlm_sql_detach(void *instance)
                        free(inst->config->xlat_name);
                }
 
-               /*
-                *      Free up dynamically allocated string pointers.
-                */
-               for (i = 0; module_config[i].name != NULL; i++) {
-                       char **p;
-                       if (module_config[i].type != PW_TYPE_STRING_PTR) {
-                               continue;
-                       }
-
-                       /*
-                        *      Treat 'config' as an opaque array of bytes,
-                        *      and take the offset into it.  There's a
-                        *      (char*) pointer at that offset, and we want
-                        *      to point to it.
-                        */
-                       p = (char **) (((char *)inst->config) + module_config[i].offset);
-                       if (!*p) { /* nothing allocated */
-                               continue;
-                       }
-                       free(*p);
-                       *p = NULL;
-               }
                /*
                 *      Catch multiple instances of the module.
                 */