summaryrefslogtreecommitdiffstats
path: root/proxy/src/gp_common.h
diff options
context:
space:
mode:
Diffstat (limited to 'proxy/src/gp_common.h')
-rw-r--r--proxy/src/gp_common.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/proxy/src/gp_common.h b/proxy/src/gp_common.h
index ad68e55..13a4c9b 100644
--- a/proxy/src/gp_common.h
+++ b/proxy/src/gp_common.h
@@ -57,6 +57,11 @@
elem->next = NULL; \
} while (0)
+#define safefree(ptr) do { \
+ free(ptr); \
+ ptr = NULL; \
+} while(0)
+
/* max out at 1MB for now */
#define MAX_RPC_SIZE 1024*1024