free allocated memory
authoraland <aland>
Fri, 11 Jul 2003 14:12:06 +0000 (14:12 +0000)
committeraland <aland>
Fri, 11 Jul 2003 14:12:06 +0000 (14:12 +0000)
src/modules/rlm_radutmp/rlm_radutmp.c

index ca858ed..0b48adb 100644 (file)
@@ -113,7 +113,8 @@ static int radutmp_detach(void *instance)
                next = p->next;
                free(p);
        }
-       free(inst->filename);
+       if (inst->filename) free(inst->filename);
+       if (inst->username) free(inst->username);
        free(inst);
        return 0;
 }