memory leak bugfix as a follow up to commit b280f5cde0246cdef33dee3f8be66a2bcef77336
authorMichael Rash <mbr@cipherdyne.org>
Tue, 29 Nov 2011 04:18:07 +0000 (23:18 -0500)
committerMichael Rash <mbr@cipherdyne.org>
Tue, 29 Nov 2011 04:18:07 +0000 (23:18 -0500)
server/incoming_spa.c

index ebd8caa..ac4e5f1 100644 (file)
@@ -617,8 +617,9 @@ incoming_spa(fko_srv_options_t *opts)
          * for others).
         */
         process_spa_request(opts, &spadat);
+        if(ctx != NULL)
+            fko_destroy(ctx);
         break;
-
     }
 
     if(! found_acc_sip)