Browse code

Plug memory leak

Shawn Webb authored on 2014/09/05 04:26:55
Showing 1 changed files
... ...
@@ -2183,6 +2183,7 @@ static void check_user_password(struct pdf_struct *pdf, int R, const char *O,
2183 2183
             dbg_printhex("computed U (R>=3)", (const char *)result, 16);
2184 2184
             if (!memcmp(result, U, 16))
2185 2185
                 password_empty = 1;
2186
+            free(d);
2186 2187
         } else {
2187 2188
             cli_dbgmsg("cli_pdf: invalid revision %d\n", R);
2188 2189
             noisy_warnmsg("cli_pdf: invalid revision %d\n", R);