Browse code

Free the name if it's been allocated

Shawn Webb authored on 2013/02/20 04:41:01
Showing 1 changed files
... ...
@@ -164,6 +164,8 @@ void crtmgr_del(crtmgr *m, cli_crt *x509) {
164 164
 	    if(i->next)
165 165
 		i->next->prev = i->prev;
166 166
 	    cli_crt_clear(x509);
167
+        if ((x509->name))
168
+            free(x509->name);
167 169
 	    free(x509);
168 170
 	    m->items--;
169 171
 	    return;