malloc -> calloc
This commit is contained in:
2 files changed
+3
-7
No files matched your search
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user