diff --git a/libavutil/mem.c b/libavutil/mem.c index b84020c0f9..15a8c07381 100644 --- a/libavutil/mem.c +++ b/libavutil/mem.c @@ -214,7 +214,7 @@ char *av_strdup(const char *s) char *ptr = NULL; if (s) { int len = strlen(s) + 1; - ptr = av_malloc(len); + ptr = av_realloc(NULL, len); if (ptr) memcpy(ptr, s, len); }