Skip to content

Commit 53abaa6

Browse files
committed
In fact, always free.
1 parent 1a15c36 commit 53abaa6

File tree

1 file changed

+6
-12
lines changed

1 file changed

+6
-12
lines changed

src/conf.c

Lines changed: 6 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -349,18 +349,12 @@ parse_auth_server(FILE *file, const char *filename, int *linenum)
349349

350350
/* only proceed if we have an host and a path */
351351
if (host == NULL) {
352-
if (NULL != path)
353-
free(path);
354-
if (NULL != authscriptpathfragment)
355-
free(authscriptpathfragment);
356-
if (NULL != pingscriptpathfragment)
357-
free(pingscriptpathfragment);
358-
if (NULL != msgscriptpathfragment)
359-
free(msgscriptpathfragment);
360-
if (NULL != portalscriptpathfragment)
361-
free(portalscriptpathfragment);
362-
if (NULL != loginscriptpathfragment)
363-
free(loginscriptpathfragment);
352+
free(path);
353+
free(authscriptpathfragment);
354+
free(pingscriptpathfragment);
355+
free(msgscriptpathfragment);
356+
free(portalscriptpathfragment);
357+
free(loginscriptpathfragment);
364358
return;
365359
}
366360

0 commit comments

Comments
 (0)