Skip to content

Commit

Permalink
Fix compile problem when no lzo2 enabled.
Browse files Browse the repository at this point in the history
  • Loading branch information
Marco van Wieringen committed May 5, 2013
1 parent cc96fa7 commit 630411a
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/filed/backup.c
Expand Up @@ -170,18 +170,20 @@ bool blast_data_to_storage_daemon(JCR *jcr, char *addr)
free_pool_memory(jcr->compress_buf);
jcr->compress_buf = NULL;
}
#ifdef HAVE_LIBZ
if (jcr->pZLIB_compress_workset) {
/* Free the zlib stream */
#ifdef HAVE_LIBZ
deflateEnd((z_stream *)jcr->pZLIB_compress_workset);
#endif
free(jcr->pZLIB_compress_workset);
jcr->pZLIB_compress_workset = NULL;
}
#endif
#ifdef HAVE_LZO
if (jcr->LZO_compress_workset) {
free(jcr->LZO_compress_workset);
jcr->LZO_compress_workset = NULL;
}
#endif

crypto_session_end(jcr);

Expand Down

0 comments on commit 630411a

Please sign in to comment.