summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--ta/ta_talloc.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/ta/ta_talloc.h b/ta/ta_talloc.h
index ce0ddaa4c9..f5eb35e17f 100644
--- a/ta/ta_talloc.h
+++ b/ta/ta_talloc.h
@@ -73,7 +73,7 @@ char *ta_talloc_asprintf_append_buffer(char *s, const char *fmt, ...) TA_PRF(2,
// mpv specific stuff - should be made part of proper TA API
-#define TA_FREEP(pctx) do {if (pctx) {talloc_free(*pctx); (*pctx) = NULL;}} while(0)
+#define TA_FREEP(pctx) do {talloc_free(*(pctx)); *(pctx) = NULL;} while(0)
#define TA_EXPAND_ARGS(...) __VA_ARGS__