Diff

Differences From Artifact [e1139896d5]:

To Artifact [84155dbf3d]:


    58     58   			if (command.AsString() == "init") {
    59     59   				if (message->HasKey("smartcardManagerAppId")) {
    60     60   					smartcardManagerAppId = strdup(message->Get("smartcardManagerAppId").AsString().c_str());
    61     61   				}
    62     62   
    63     63   				pcscNaClInit(this, corePointer, smartcardManagerAppId, "CACKey");
    64     64   
    65         -				free((void *) smartcardManagerAppId);
           65  +				if (smartcardManagerAppId) {
           66  +					free((void *) smartcardManagerAppId);
           67  +				}
    66     68   
    67     69   				reply->Set("status", "success");
    68     70   			} else if (command.AsString() == "listcertificates") {
    69     71   				numCertificates = cackey_chrome_listCertificates(&certificates);
    70     72   
    71     73   				certificatesPPArray.SetLength(numCertificates);
    72     74