summaryrefslogtreecommitdiffstats
path: root/source/include/talloc.h
diff options
context:
space:
mode:
Diffstat (limited to 'source/include/talloc.h')
-rw-r--r--source/include/talloc.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/source/include/talloc.h b/source/include/talloc.h
index ee0c943c51f..06efbf6952a 100644
--- a/source/include/talloc.h
+++ b/source/include/talloc.h
@@ -34,7 +34,7 @@ typedef struct {
/* free memory if the pointer is valid and zero the pointer */
#ifndef SAFE_FREE
-#define SAFE_FREE(x) do { if ((x) != NULL) {free(x); x=NULL;} } while(0)
+#define SAFE_FREE(x) do { if ((x) != NULL) {free((x)); (x)=NULL;} } while(0)
#endif
#endif