Skip to content

Commit

Permalink
Merge pull request #215 from PatKamin/fix-free-in-rewriteClientComman…
Browse files Browse the repository at this point in the history
…dVector

Replace zmalloc with zmalloc_dram to fix memory usage calculation
  • Loading branch information
jschmieg authored Jul 22, 2020
2 parents e568f00 + 53b4f2b commit 4b72f11
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/networking.c
Original file line number Diff line number Diff line change
Expand Up @@ -2574,7 +2574,7 @@ void rewriteClientCommandVector(client *c, int argc, ...) {
int j;
robj **argv; /* The new argument vector */

argv = zmalloc(sizeof(robj*)*argc);
argv = zmalloc_dram(sizeof(robj*)*argc);
va_start(ap,argc);
for (j = 0; j < argc; j++) {
robj *a;
Expand Down

0 comments on commit 4b72f11

Please sign in to comment.