malloc -> calloc

This commit is contained in:
Marcos Del Sol Vives committed 2024-01-07 00:58:13 +01:00
1 parent 1e9a9f2838
commit b050ebc2b9
2 files changed
+3 -7

No files matched your search

+2 -6
View File
@@ -674,15 +674,11 @@ static int CmdHF14AWSLoad(const char *Cmd) {
return PM3_EMALLOC;
}
}
gdImageDestroy(pal_img);
int res = start_drawing(model_nr, black_plane, red_plane);
free(black_plane);
if (red_plane) {
free(red_plane);
}
free(red_plane);
return res;
}