cherry-pick.FILE5_30-30-gc703aa9f.free-memory-on-error.patch 326 B

123456789101112131415161718
  1. Subject: Free memory on error
  2. Origin: FILE5_30-30-gc703aa9f
  3. Upstream-Author: Christos Zoulas <christos@zoulas.com>
  4. Date: Tue Mar 28 15:13:07 2017 +0000
  5. --- a/src/cdf.c
  6. +++ b/src/cdf.c
  7. @@ -1057,6 +1057,10 @@
  8. }
  9. return 0;
  10. out:
  11. + free(*info);
  12. + *info = NULL;
  13. + *count = 0;
  14. + *maxcount = 0;
  15. errno = EFTYPE;
  16. return -1;
  17. }