chiark / gitweb /
server/keymgmt.c: Don't leak `kdata' objects.
[tripe] / server / keymgmt.c
index 61cba579896432c16f1ba69caaa4fb2a065a6e4c..8f0d1a2ad643700dcdda9bcac93e1a0f90eaa7d7 100644 (file)
@@ -166,7 +166,7 @@ static const kgops *kgtab[] = {
 /* --- @algs_get@ --- *
  *
  * Arguments:  @algswitch *a@ = where to put the algorithms
- *             @dstr *e@ = where to write errror tokens
+ *             @dstr *e@ = where to write error tokens
  *             @key_file *kf@ = key file
  *             @key *k@ = key to inspect
  *
@@ -883,6 +883,7 @@ void km_unref(kdata *kd)
   G_DESTROY(kd->g, kd->kpub);
   xfree(kd->tag);
   G_DESTROYGROUP(kd->g);
+  DESTROY(kd);
 }
 
 /*----- That's all, folks -------------------------------------------------*/