nsswitch: Fix a memleak in wbinfo
authorVolker Lendecke <vl@samba.org>
Sun, 18 Apr 2010 12:09:22 +0000 (14:09 +0200)
committerVolker Lendecke <vl@samba.org>
Sun, 18 Apr 2010 13:25:02 +0000 (15:25 +0200)
nsswitch/wbinfo.c

index cbd4f1d8eebe2b7ef8cd19e747fcef55730816ed..afecc86f1e54c724b6d4727d7097f2eeee4e3020 100644 (file)
@@ -72,6 +72,8 @@ static char winbind_separator(void)
        sep = details->winbind_separator;
        got_sep = true;
 
+       wbcFreeMemory(details);
+
        if (!sep) {
                d_fprintf(stderr, "winbind separator was NULL!\n");
                return 0;