diff options
Diffstat (limited to 'src/memline.c')
-rw-r--r-- | src/memline.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/memline.c b/src/memline.c index 5ca50fc..6c63fad 100644 --- a/src/memline.c +++ b/src/memline.c @@ -5556,7 +5556,10 @@ ml_encrypt_data( new_data = alloc(size); if (new_data == NULL) + { + crypt_free_state(state); return NULL; + } head_end = (char_u *)(&dp->db_index[dp->db_line_count]); text_start = (char_u *)dp + dp->db_txt_start; text_len = size - dp->db_txt_start; |