Browse Source

Bugfix: ztex: Free bitstream in memory when done with it

Luke Dashjr 12 years ago
parent
commit
8f3d4f3fed
1 changed files with 1 additions and 0 deletions
  1. 1 0
      libztex.c

+ 1 - 0
libztex.c

@@ -185,6 +185,7 @@ static enum check_result libztex_checkDevice(struct libusb_device *dev)
 	ret = CHECK_RESCAN;
 	ret = CHECK_RESCAN;
 
 
 done:
 done:
+	free(fw_buf);
 	if (fp)
 	if (fp)
 		fclose(fp);
 		fclose(fp);
 	if (hndl)
 	if (hndl)