]> asedeno.scripts.mit.edu Git - PuTTY.git/blobdiff - unix/uxnoise.c
ssh_free() should not call log_free(); it's for the front end to
[PuTTY.git] / unix / uxnoise.c
index 873a33136f3b704c612ddf785b0195b3f6533dfe..b563f7cbe4a2475ee9e195691b7702af129161c9 100644 (file)
@@ -62,6 +62,7 @@ void noise_get_heavy(void (*func) (void *, int))
     pclose(fp);
 
     read_random_seed(func);
+    random_save_seed();
 }
 
 void random_save_seed(void)
@@ -72,6 +73,7 @@ void random_save_seed(void)
     if (random_active) {
        random_get_savedata(&data, &len);
        write_random_seed(data, len);
+       sfree(data);
     }
 }