Fixed double free bug in libdcui.
authorFredrik Tolf <fredrik@dolda2000.com>
Sat, 1 Mar 2008 03:53:06 +0000 (04:53 +0100)
committerFredrik Tolf <fredrik@dolda2000.com>
Sat, 1 Mar 2008 03:53:06 +0000 (04:53 +0100)
lib/uilib.c

index 48b3eed..1290dd9 100644 (file)
@@ -490,6 +490,7 @@ int dc_queuecmd(int (*callback)(struct dc_response *), void *data, ...)
                        return(-1);
                    }
                } else if(!wcscmp(tpart, L"ls")) {
+                   freepart = 0;
                    part = va_arg(al, wchar_t *);
                } else if(!wcscmp(tpart, L"ll")) {
                    freepart = 1;