mirror of
https://dev.iopsys.eu/bbf/bbfdm.git
synced 2026-03-14 21:20:28 +01:00
check the pointer before freeded it
This commit is contained in:
parent
b89c48507e
commit
0bef3b715b
1 changed files with 1 additions and 1 deletions
2
dmbbf.h
2
dmbbf.h
|
|
@ -47,7 +47,7 @@
|
|||
#endif
|
||||
|
||||
#ifndef FREE
|
||||
#define FREE(x) do { free(x); x = NULL; } while (0)
|
||||
#define FREE(x) do { if(x) {free(x); x = NULL;} } while (0)
|
||||
#endif
|
||||
|
||||
extern struct dm_permession_s DMREAD;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue