Skip to content

Commit

Permalink
added memory clean up
Browse files Browse the repository at this point in the history
  • Loading branch information
Rup0rt committed Jun 9, 2021
1 parent 5c2965f commit d463a9d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion pcapfix.c
Expand Up @@ -45,7 +45,7 @@
#include "pcap_kuznet.h"
#include "pcapng.h"

#define VERSION "1.1.5" /* pcapfix version */
#define VERSION "1.1.6-DEVEL" /* pcapfix version */

#define BTSNOOP_MAGIC 0x6E737462 /* btsnoop file magic (first 4 bytes) */
#define SNOOP_MAGIC 0x6f6f6e73 /* snoop file magic (first 4 bytes) */
Expand Down Expand Up @@ -484,6 +484,7 @@ int main(int argc, char *argv[]) {
fclose(pcap_fix);
int success = truncate(filename_fix, finalpos);
if (success != 0) printf("[-] Truncating result file failed!");
free(filename_fix);

printf("[+] SUCCESS: %d Corruption(s) fixed!\n\n", res);
return(0);
Expand Down

0 comments on commit d463a9d

Please sign in to comment.