Skip to content

Commit

Permalink
avoid free of nullptr
Browse files Browse the repository at this point in the history
  • Loading branch information
pstorz committed Jan 7, 2019
1 parent 3d26757 commit 7df8dbe
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/src/dird/ndmp_dma_generic.cc
Expand Up @@ -707,7 +707,7 @@ void NdmpDoQuery(UaContext *ua, ndm_job_param *ndmp_job, int NdmpLoglevel, ndmca
/*
* Free the param block.
*/
free(ndmp_sess.param->log_tag);
if (ndmp_sess.param->log_tag) { free(ndmp_sess.param->log_tag); }
free(ndmp_sess.param);
free(nis);
ndmp_sess.param = NULL;
Expand Down

0 comments on commit 7df8dbe

Please sign in to comment.