patch-ripole_c 438 B

1234567891011121314
  1. $OpenBSD: patch-ripole_c,v 1.1 2016/03/02 13:34:32 sthen Exp $
  2. --- ripole.c.orig Mon Dec 5 08:45:17 2011
  3. +++ ripole.c Wed Mar 2 13:14:35 2016
  4. @@ -256,7 +256,8 @@ Changes:
  5. int ROLE_done(struct ripOLE_object *role)
  6. {
  7. if (role->inputfile != NULL) free(role->inputfile);
  8. - if (role->outputdir != NULL) free(role->outputdir);
  9. + if ((role->outputdir != NULL) && (role->outputdir != defaultdir))
  10. + free(role->outputdir);
  11. return 0;
  12. }